Make order test more reliable on pypy

This commit is contained in:
Alexander Bersenev 2019-05-11 14:21:49 +05:00 committed by Ram Rachum
parent 1cd2dffa13
commit ca90f55d5f
1 changed files with 10 additions and 0 deletions

View File

@ -986,6 +986,10 @@ def test_var_order():
string_io = io.StringIO()
def f(one, two, three, four):
five = None
six = None
seven = None
five, six, seven = 5, 6, 7
with pysnooper.snoop(string_io, depth=2):
@ -1006,6 +1010,12 @@ def test_var_order():
CallEntry('def f(one, two, three, four):'),
LineEntry(),
VariableEntry("five"),
LineEntry(),
VariableEntry("six"),
LineEntry(),
VariableEntry("seven"),
LineEntry(),
VariableEntry("five", "5"),
VariableEntry("six", "6"),
VariableEntry("seven", "7"),