This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!T35w3jQUBd8pnVR1SVy6WHWP)3Pw7H9m12rST7PxylkyLkcma2dZf9Z(Bsavotqfl2HznRwlYHKqYZZV8Cizi9WbdLvG)WBOS7qzMJepIEO88HYQO)d)UrkJNP6yz3XYWYbEGE04)ZG)jl(NGH9OoIdDhgz5OQ50o4sgk32q)p)rXr99hgyzz4PdpK7yfdn4LDel3YZF4OHYVD5KjUAEdp5RC8uSaAbrEkEGehl1WjFfapvhTh1Tmh8MT2q5hDSwyV8QL1)d6(XV8VjQG(66hNKeGfWWjXdO4zyyrpo49AHJXq5PEE2U)VV9TxuE06iDRVD2m7fDzVd81VbgkR9QTIPQMkQ075O)4JAoU(p2bRoa(J4ISYchfyLFXiTN1m9KxmzI(RdLVVtl5b3lpOvF4jI)MHYNPPy4nD95ELJg(CLVQ7p(b8W2AggNR66)ktvBe8w53QCw3FC1jxdpLfM6WVY2q5nyjq2uzUwWzJox5PwVCPj8(G)DRXE6pRH(UfMRlZEOdOG)Qb(h8clvuJ863XDvFe(i7zzQT8ibTO9GVRumhp1Y5klDu9Pt3Ed62hDq95kEW3HOgfxpfhp0huHTlOdEVFZKR2yltyLlOvZeD)H3J5k6MKF2t0n1DNs85dVcDyV9oh7((d9TECb(enMeu8BF5GbxEXp6Ec82nXb2wcF3Q4PGAmGT(UJHxOJMINgSp(O3E)HEwEEOwD)2KZnXnj0WZDb6zyF83V7QNMSygAWXZWomOMdy3sz4JsZXuX4MLhtAzR4jONP)ly5o972T3qzuLqhvTcETAyPGhQQB6pWa(X5lGJ2w9Me1zd3hi6X9GJen9sCyypSXjo4ydfx8DWf(uGdGL7F5Px3n2jnb1NX)fCKJVWv7E)BaSXd1(6OmwlJIdBIJB)SDgLuvDynBm8iVLXnJjXXDSms(KDrIqIDWGra(nYR6VgU3fQFdAK2QZF8QH)pAy9cwUG2RE0NybhW7lKsyTGUEuzmoz8cxpR5dGx512QWowWMVGFNs5rw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Hello world diffname" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import decorator | |
def failme(func): | |
def wrapped(func, *args, **kwargs): | |
raise Exception() | |
return decorator.decorator(wrapped, func) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import * | |
def to_byte_array(val): | |
width = val.bit_length() | |
width += 8 - ((width % 8) or 8) | |
fmt = "{:0%sb}" % width | |
str_val = fmt.format(val) | |
n = 8 | |
print "Str_val: \t{}".format(str_val) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dec: 65537 | |
Bin: 10000000000000001 | |
Str_val: 000000010000000000000001 | |
Converted: ['00000001', '00000000', '00000001'] | |
Byte Array: <__main__.c_ubyte_Array_3 object at 0x01E4F9E0> | |
Raw: [1, 0, 1] | |
Bin: ['1', '0', '1'] | |
Dec: 12345678900987654321 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if rep.failed: | |
if hasattr(rep.longrepr, "sections"): | |
local_vars = call.excinfo.traceback[-1].locals | |
longest_name = max([len(str(item)) for item in local_vars.keys()]) | |
local_list = [] | |
for item, value in local_vars.items(): | |
if str(value) not in repr(value): | |
single_local_str = "{:%s} = " % longest_name | |
single_local_str = single_local_str.format(item) | |
single_local_str += " {}".format(str(value).strip()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from _pytest.junitxml import LogXML, Junit | |
from io import open | |
import pytest | |
import sys | |
import time | |
class MultiRunXml(LogXML): | |
""" | |
This is a wrapper around Pytest's LogXML, which |