From ca90f55d5f640bd1f14f500a5f79c71978c6705b Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Sat, 11 May 2019 14:21:49 +0500 Subject: [PATCH] Make order test more reliable on pypy --- tests/test_pysnooper.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_pysnooper.py b/tests/test_pysnooper.py index ea924a0..4e31f14 100644 --- a/tests/test_pysnooper.py +++ b/tests/test_pysnooper.py @@ -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"),