Rename debug in testcases to trace
To remove D specific keyword rename
This commit is contained in:
parent
48c644ea6e
commit
0ba11023ac
13 changed files with 61 additions and 81 deletions
|
|
@ -8,13 +8,13 @@ def check(p):
|
|||
if msg != "hi there":
|
||||
raise RuntimeError("Bad, got: " + msg)
|
||||
|
||||
python_pickle.cvar.debug = False
|
||||
python_pickle.cvar.trace = False
|
||||
|
||||
p = python_pickle.PickleMe("hi there")
|
||||
check(p)
|
||||
|
||||
r = p.__reduce__()
|
||||
if python_pickle.cvar.debug:
|
||||
if python_pickle.cvar.trace:
|
||||
print("__reduce__ returned: {}".format(r))
|
||||
pickle_string = pickle.dumps(p)
|
||||
newp = pickle.loads(pickle_string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue