diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 55f649a..4616d1f 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -2,16 +2,17 @@ name: Tests on: [push, pull_request] jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10', 3.11-dev, 'pypy-2.7', 'pypy-3.6'] + python-version: [3.8, 3.9, '3.10', 3.11, 3.12, 3.13] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: run tests run: | pip install --upgrade pip diff --git a/snoop/formatting.py b/snoop/formatting.py index 2919e67..bd52c58 100644 --- a/snoop/formatting.py +++ b/snoop/formatting.py @@ -169,7 +169,7 @@ def opname(self): def is_yield_value(self): for i in range(self.frame.f_lasti, -1, -1): opname = self.opname_at(i) - if opname not in ('RESUME', 'CACHE'): + if opname not in ('RESUME', 'CACHE', 'POP_TOP', 'PUSH_NULL'): return opname == 'YIELD_VALUE' @@ -303,7 +303,7 @@ def format_return(self, event): if event.frame_info.had_exception: return [u'{c.red}??? Call either returned None or ended by exception{c.reset}' .format(c=self.c)] - elif opname not in ('RETURN_VALUE', 'YIELD_VALUE'): + elif opname not in ('RETURN_VALUE', 'YIELD_VALUE', 'RETURN_CONST'): return [u'{c.red}!!! Call ended by exception{c.reset}'.format(c=self.c)] value = self.highlighted(my_cheap_repr(arg)) @@ -311,7 +311,7 @@ def format_return(self, event): prefix = plain_prefix = u'Result: ' else: plain_prefix = u'<<< {description} value from {func}: '.format( - description='Yield' if opname == 'YIELD_VALUE' else 'Return', + description='Yield' if opname in ('YIELD_VALUE', 'RESUME') else 'Return', func=event.code_qualname(), ) prefix = u'{c.green}{}{c.reset}'.format( diff --git a/tests/sample_results/2.7/color.txt b/tests/sample_results/2.7/color.txt deleted file mode 100644 index 81db7a2..0000000 --- a/tests/sample_results/2.7/color.txt +++ /dev/null @@ -1,104 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  18 | or foo)() -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  23 | x + y -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1000 -12:34:56.78 .......... y = 2000 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1001 -12:34:56.78 .......... y = 2001 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1002 -12:34:56.78 .......... y = 2002 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1003 -12:34:56.78 .......... y = 2003 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1004 -12:34:56.78 .......... y = 2004 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1005 -12:34:56.78 .......... y = 2005 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1006 -12:34:56.78 .......... y = 2006 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1007 -12:34:56.78 .......... y = 2007 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1008 -12:34:56.78 .......... y = 2008 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1009 -12:34:56.78 .......... y = 2009 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1010 -12:34:56.78 .......... y = 2010 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1011 -12:34:56.78 .......... y = 2011 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1012 -12:34:56.78 .......... y = 2012 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1013 -12:34:56.78 .......... y = 2013 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1014 -12:34:56.78 .......... y = 2014 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1015 -12:34:56.78 .......... y = 2015 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1016 -12:34:56.78 .......... y = 2016 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1017 -12:34:56.78 .......... y = 2017 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1018 -12:34:56.78 .......... y = 2018 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1019 -12:34:56.78 .......... y = 2019 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/2.7/comprehensions.txt b/tests/sample_results/2.7/comprehensions.txt deleted file mode 100644 index 8f061aa..0000000 --- a/tests/sample_results/2.7/comprehensions.txt +++ /dev/null @@ -1,95 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 -12:34:56.78 16 | def main(): -12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ...} -12:34:56.78 17 | str({x for x in list(range(100))}) -12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, ...} -12:34:56.78 18 | str({x: x for x in list(range(100))}) -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {0, 1, 2} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 1 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {1, 2, 3} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 2 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {2, 3, 4} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0, 1, 2 - 12:34:56.78 Result: {0: {0, 1, 2}, 1: {1, 2, 3}, 2: {2, 3, 4}} -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 1 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 1 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 2 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 4 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {1, 4} -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) -12:34:56.78 22 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 - 12:34:56.78 11 | def bar(): - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 <<< Return value from bar: None -12:34:56.78 22 | bar() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/2.7/decorator_exception.txt b/tests/sample_results/2.7/decorator_exception.txt deleted file mode 100644 index c59657d..0000000 --- a/tests/sample_results/2.7/decorator_exception.txt +++ /dev/null @@ -1,9 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | try: -12:34:56.78 7 | @int -12:34:56.78 !!! TypeError: int() argument must be a string or a number, not 'function' -12:34:56.78 !!! When calling decorator: @int -12:34:56.78 10 | except: -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/2.7/pp_custom_pformat.txt b/tests/sample_results/2.7/pp_custom_pformat.txt deleted file mode 100644 index 0f9ed45..0000000 --- a/tests/sample_results/2.7/pp_custom_pformat.txt +++ /dev/null @@ -1,51 +0,0 @@ -Test with custom pformat -12:34:56.78 LOG: -12:34:56.78 .... x = custom(1) -12:34:56.78 LOG: -12:34:56.78 .... pp(x) + y = custom(3) -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ............ y = 2 -12:34:56.78 ........ x + y = 3 -12:34:56.78 ........ y = 2 -12:34:56.78 .... (x + y) + y = custom(5) -12:34:56.78 >>> Enter with block in test_misc in File "/path/to_file.py", line 11 -12:34:56.78 .......... x = 1 -12:34:56.78 .......... y = 2 -12:34:56.78 12 | y = 3 # custom pformat is not used here -12:34:56.78 .............. y = 3 -12:34:56.78 <<< Exit with block in test_misc -12:34:56.78 LOG: -12:34:56.78 .... d = custom(['a long key to be pretty printed prettily', ['prettyprinter prints datetime with keyword arguments:', datetime.datetime(1970, 1, 1, 0, 0, 42)]]) - -Test without prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = ['a long key to be pretty printed prettily', -12:34:56.78 ['prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42)]] - -Test with prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = ['a long key to be pretty printed prettily', -12:34:56.78 ['prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42)]] - -Test without prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42), -12:34:56.78 ], -12:34:56.78 ] - -Test with prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42), -12:34:56.78 ], -12:34:56.78 ] \ No newline at end of file diff --git a/tests/sample_results/2.7/pp_exception.txt b/tests/sample_results/2.7/pp_exception.txt deleted file mode 100644 index 025dfca..0000000 --- a/tests/sample_results/2.7/pp_exception.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | try: -12:34:56.78 9 | pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 LOG: -12:34:56.78 ................ x = 1 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ x + y = 3 -12:34:56.78 ................ bad = -12:34:56.78 ............ bad() = !!! TypeError! -12:34:56.78 !!! TypeError: bad -12:34:56.78 !!! When calling: pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 10 | except: -12:34:56.78 11 | sample_traceback() -Traceback (most recent call last): - pp.deep(lambda: x + y + bad() + 2) - return PPEvent(self, [arg], deep=True).returns - self.returns = self.deep_pp(call_arg.body, frame) - return eval(code, frame.f_globals, frame.f_locals) - pp.deep(lambda: x + y + bad() + 2) - raise TypeError('bad') -TypeError: bad -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/2.7/unavailable_source.txt b/tests/sample_results/2.7/unavailable_source.txt deleted file mode 100644 index af9a4d2..0000000 --- a/tests/sample_results/2.7/unavailable_source.txt +++ /dev/null @@ -1,8 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78 4 | SOURCE IS UNAVAILABLE -12:34:56.78 5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/2.7/watch_explode.txt b/tests/sample_results/2.7/watch_explode.txt deleted file mode 100644 index 2976dc4..0000000 --- a/tests/sample_results/2.7/watch_explode.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 .......... _d['c'] = 'ignore' -12:34:56.78 15 | _point = Foo(x=3, y=4) -12:34:56.78 .......... _point = -12:34:56.78 .......... _point.x = 3 -12:34:56.78 .......... _point.y = 4 -12:34:56.78 16 | lst = [7, 8, 9] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 .......... (lst + [])[0] = 7 -12:34:56.78 .......... (lst + [])[1] = 8 -12:34:56.78 .......... (lst + [])[2] = 9 -12:34:56.78 .......... lst + [] = [7, 8, 9] -12:34:56.78 .......... len(lst + []) = 3 -12:34:56.78 17 | lst.append(10) -12:34:56.78 .......... lst = [7, 8, 9, 10] -12:34:56.78 .......... len(lst) = 4 -12:34:56.78 .......... (lst + [])[3] = 10 -12:34:56.78 .......... lst + [] = [7, 8, 9, 10] -12:34:56.78 .......... len(lst + []) = 4 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/2.7/with_block.txt b/tests/sample_results/2.7/with_block.txt deleted file mode 100644 index fd46d74..0000000 --- a/tests/sample_results/2.7/with_block.txt +++ /dev/null @@ -1,49 +0,0 @@ -12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 -12:34:56.78 .......... x = 2 -12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 - 12:34:56.78 .......... x = 1 - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Call to bar1 in File "/path/to_file.py", line 26 - 12:34:56.78 ...... _x = 0 - 12:34:56.78 26 | def bar1(_x): - 12:34:56.78 27 | qux() - 12:34:56.78 <<< Return value from bar1: None - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None - 12:34:56.78 18 | bar2(x) - 12:34:56.78 19 | qux() - 12:34:56.78 <<< Exit with block in foo - 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 - 12:34:56.78 ...... _x = 9 - 12:34:56.78 36 | def bar3(_x): - 12:34:56.78 37 | qux() - 12:34:56.78 <<< Return value from bar3: None -12:34:56.78 17 | foo(x - 1) -12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None -12:34:56.78 18 | bar2(x) -12:34:56.78 19 | qux() -12:34:56.78 <<< Exit with block in foo -12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 -12:34:56.78 ...... _x = 9 -12:34:56.78 36 | def bar3(_x): -12:34:56.78 37 | qux() -12:34:56.78 <<< Return value from bar3: None -12:34:56.78 >>> Enter with block in gen in File "/path/to_file.py", line 47 -12:34:56.78 .................. i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Yield value from gen: 1 -12:34:56.78 >>> Re-enter generator gen in File "/path/to_file.py", line 48 -12:34:56.78 ...................... i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Exit with block in gen \ No newline at end of file diff --git a/tests/sample_results/3.10/color.txt b/tests/sample_results/3.10/color.txt index b7bae1a..14512dc 100644 --- a/tests/sample_results/3.10/color.txt +++ b/tests/sample_results/3.10/color.txt @@ -1,54 +1,54 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() -12:34:56.78  17 | (None - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  17 | (None -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  22 | [ -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  22 | [ - 12:34:56.78 List comprehension: - 12:34:56.78  22 | [ - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78  22 | [ -12:34:56.78  21 | pp( -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78 <<< Return value from main: None \ No newline at end of file +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | pp( +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  22 | [ + 12:34:56.78 List comprehension: + 12:34:56.78  22 | [ + 12:34:56.78 .......... Iterating over <zip object at 0xABC> + 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 + 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 + 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] +12:34:56.78  22 | [ +12:34:56.78  21 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  ] = [3000, +12:34:56.78  3002, +12:34:56.78  3004, +12:34:56.78  3006, +12:34:56.78  3008, +12:34:56.78  3010, +12:34:56.78  3012, +12:34:56.78  3014, +12:34:56.78  3016, +12:34:56.78  3018, +12:34:56.78  3020, +12:34:56.78  3022, +12:34:56.78  3024, +12:34:56.78  3026, +12:34:56.78  3028, +12:34:56.78  3030, +12:34:56.78  3032, +12:34:56.78  3034, +12:34:56.78  3036, +12:34:56.78  3038] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.10/color_without_comprehension.txt b/tests/sample_results/3.10/color_without_comprehension.txt new file mode 100644 index 0000000..0b30795 --- /dev/null +++ b/tests/sample_results/3.10/color_without_comprehension.txt @@ -0,0 +1,28 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | x = 1 +12:34:56.78  22 | y = 2 +12:34:56.78  23 | pp( +12:34:56.78  25 | x + y +12:34:56.78  24 | [ +12:34:56.78  23 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  ] = [3] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.10/unavailable_source.txt b/tests/sample_results/3.10/unavailable_source.txt index af9a4d2..d330b61 100644 --- a/tests/sample_results/3.10/unavailable_source.txt +++ b/tests/sample_results/3.10/unavailable_source.txt @@ -2,7 +2,7 @@ 12:34:56.78 4 | SOURCE IS UNAVAILABLE 12:34:56.78 5 | SOURCE IS UNAVAILABLE 12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file +12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 +12:34:56.78  4 | SOURCE IS UNAVAILABLE +12:34:56.78  5 | SOURCE IS UNAVAILABLE +12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/3.11/color.txt b/tests/sample_results/3.11/color.txt index b7bae1a..14512dc 100644 --- a/tests/sample_results/3.11/color.txt +++ b/tests/sample_results/3.11/color.txt @@ -1,54 +1,54 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() -12:34:56.78  17 | (None - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  17 | (None -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  22 | [ -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  22 | [ - 12:34:56.78 List comprehension: - 12:34:56.78  22 | [ - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78  22 | [ -12:34:56.78  21 | pp( -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78 <<< Return value from main: None \ No newline at end of file +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | pp( +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  22 | [ + 12:34:56.78 List comprehension: + 12:34:56.78  22 | [ + 12:34:56.78 .......... Iterating over <zip object at 0xABC> + 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 + 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 + 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] +12:34:56.78  22 | [ +12:34:56.78  21 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  ] = [3000, +12:34:56.78  3002, +12:34:56.78  3004, +12:34:56.78  3006, +12:34:56.78  3008, +12:34:56.78  3010, +12:34:56.78  3012, +12:34:56.78  3014, +12:34:56.78  3016, +12:34:56.78  3018, +12:34:56.78  3020, +12:34:56.78  3022, +12:34:56.78  3024, +12:34:56.78  3026, +12:34:56.78  3028, +12:34:56.78  3030, +12:34:56.78  3032, +12:34:56.78  3034, +12:34:56.78  3036, +12:34:56.78  3038] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.11/color_without_comprehension.txt b/tests/sample_results/3.11/color_without_comprehension.txt new file mode 100644 index 0000000..0b30795 --- /dev/null +++ b/tests/sample_results/3.11/color_without_comprehension.txt @@ -0,0 +1,28 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | x = 1 +12:34:56.78  22 | y = 2 +12:34:56.78  23 | pp( +12:34:56.78  25 | x + y +12:34:56.78  24 | [ +12:34:56.78  23 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  ] = [3] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.11/pandas_sample.txt b/tests/sample_results/3.11/pandas_sample.txt index 5384cb5..9502011 100644 --- a/tests/sample_results/3.11/pandas_sample.txt +++ b/tests/sample_results/3.11/pandas_sample.txt @@ -28,8 +28,8 @@ 12:34:56.78 [100 rows x 100 columns] 12:34:56.78 .......... df.shape = (100, 100) 12:34:56.78 11 | series = df[0] -12:34:56.78 .......... series = 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 +12:34:56.78 .......... series = 0 = np.int64(0); 1 = np.int64(100); 2 = np.int64(200); ...; 97 = np.int64(9700); 98 = np.int64(9800); 99 = np.int64(9900) 12:34:56.78 .......... series.shape = (100,) 12:34:56.78 .......... series.dtype = dtype('int64') 12:34:56.78 12 | return series -12:34:56.78 <<< Return value from main: 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 \ No newline at end of file +12:34:56.78 <<< Return value from main: 0 = np.int64(0); 1 = np.int64(100); 2 = np.int64(200); ...; 97 = np.int64(9700); 98 = np.int64(9800); 99 = np.int64(9900) \ No newline at end of file diff --git a/tests/sample_results/3.11/unavailable_source.txt b/tests/sample_results/3.11/unavailable_source.txt index af9a4d2..d330b61 100644 --- a/tests/sample_results/3.11/unavailable_source.txt +++ b/tests/sample_results/3.11/unavailable_source.txt @@ -2,7 +2,7 @@ 12:34:56.78 4 | SOURCE IS UNAVAILABLE 12:34:56.78 5 | SOURCE IS UNAVAILABLE 12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file +12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 +12:34:56.78  4 | SOURCE IS UNAVAILABLE +12:34:56.78  5 | SOURCE IS UNAVAILABLE +12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/2.7/all_columns.txt b/tests/sample_results/3.12/all_columns.txt similarity index 100% rename from tests/sample_results/2.7/all_columns.txt rename to tests/sample_results/3.12/all_columns.txt diff --git a/tests/sample_results/2.7/cellvars.txt b/tests/sample_results/3.12/cellvars.txt similarity index 97% rename from tests/sample_results/2.7/cellvars.txt rename to tests/sample_results/3.12/cellvars.txt index b0519ec..cfd3adc 100644 --- a/tests/sample_results/2.7/cellvars.txt +++ b/tests/sample_results/3.12/cellvars.txt @@ -27,4 +27,5 @@ 12:34:56.78 <<< Return value from f2: 42 12:34:56.78 17 | result1 = f2(42) 12:34:56.78 .............. result1 = 42 +12:34:56.78 16 | with snoop(depth=4): 12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/3.12/color.txt b/tests/sample_results/3.12/color.txt new file mode 100644 index 0000000..01b3ef5 --- /dev/null +++ b/tests/sample_results/3.12/color.txt @@ -0,0 +1,146 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | pp( +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1000 +12:34:56.78 .......... y = 2000 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1001 +12:34:56.78 .......... y = 2001 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1002 +12:34:56.78 .......... y = 2002 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1003 +12:34:56.78 .......... y = 2003 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1004 +12:34:56.78 .......... y = 2004 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1005 +12:34:56.78 .......... y = 2005 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1006 +12:34:56.78 .......... y = 2006 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1007 +12:34:56.78 .......... y = 2007 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1008 +12:34:56.78 .......... y = 2008 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1009 +12:34:56.78 .......... y = 2009 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1010 +12:34:56.78 .......... y = 2010 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1011 +12:34:56.78 .......... y = 2011 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1012 +12:34:56.78 .......... y = 2012 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1013 +12:34:56.78 .......... y = 2013 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1014 +12:34:56.78 .......... y = 2014 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1015 +12:34:56.78 .......... y = 2015 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1016 +12:34:56.78 .......... y = 2016 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1017 +12:34:56.78 .......... y = 2017 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1018 +12:34:56.78 .......... y = 2018 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1019 +12:34:56.78 .......... y = 2019 +12:34:56.78  23 | x + y +12:34:56.78  22 | [ +12:34:56.78  21 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  ] = [3000, +12:34:56.78  3002, +12:34:56.78  3004, +12:34:56.78  3006, +12:34:56.78  3008, +12:34:56.78  3010, +12:34:56.78  3012, +12:34:56.78  3014, +12:34:56.78  3016, +12:34:56.78  3018, +12:34:56.78  3020, +12:34:56.78  3022, +12:34:56.78  3024, +12:34:56.78  3026, +12:34:56.78  3028, +12:34:56.78  3030, +12:34:56.78  3032, +12:34:56.78  3034, +12:34:56.78  3036, +12:34:56.78  3038] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.12/color_without_comprehension.txt b/tests/sample_results/3.12/color_without_comprehension.txt new file mode 100644 index 0000000..0b30795 --- /dev/null +++ b/tests/sample_results/3.12/color_without_comprehension.txt @@ -0,0 +1,28 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | x = 1 +12:34:56.78  22 | y = 2 +12:34:56.78  23 | pp( +12:34:56.78  25 | x + y +12:34:56.78  24 | [ +12:34:56.78  23 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  ] = [3] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.12/comprehensions.txt b/tests/sample_results/3.12/comprehensions.txt new file mode 100644 index 0000000..f811092 --- /dev/null +++ b/tests/sample_results/3.12/comprehensions.txt @@ -0,0 +1,474 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 +12:34:56.78 16 | def main(): +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 0 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 1 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 2 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 3 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 4 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 5 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 6 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 7 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 8 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 9 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 10 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 11 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 12 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 13 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 14 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 15 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 16 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 17 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 18 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 19 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 20 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 21 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 22 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 23 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 24 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 25 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 26 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 27 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 28 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 29 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 30 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 31 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 32 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 33 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 34 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 35 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 36 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 37 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 38 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 39 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 40 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 41 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 42 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 43 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 44 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 45 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 46 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 47 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 48 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 49 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 50 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 51 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 52 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 53 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 54 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 55 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 56 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 57 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 58 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 59 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 60 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 61 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 62 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 63 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 64 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 65 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 66 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 67 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 68 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 69 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 70 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 71 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 72 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 73 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 74 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 75 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 76 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 77 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 78 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 79 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 80 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 81 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 82 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 83 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 84 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 85 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 86 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 87 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 88 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 89 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 90 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 91 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 92 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 93 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 94 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 95 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 96 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 97 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 98 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 99 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 0 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 1 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 2 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 3 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 4 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 5 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 6 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 7 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 8 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 9 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 10 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 11 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 12 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 13 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 14 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 15 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 16 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 17 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 18 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 19 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 20 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 21 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 22 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 23 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 24 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 25 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 26 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 27 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 28 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 29 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 30 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 31 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 32 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 33 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 34 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 35 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 36 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 37 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 38 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 39 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 40 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 41 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 42 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 43 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 44 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 45 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 46 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 47 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 48 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 49 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 50 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 51 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 52 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 53 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 54 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 55 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 56 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 57 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 58 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 59 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 60 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 61 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 62 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 63 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 64 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 65 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 66 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 67 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 68 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 69 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 70 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 71 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 72 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 73 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 74 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 75 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 76 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 77 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 78 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 79 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 80 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 81 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 82 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 83 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 84 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 85 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 86 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 87 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 88 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 89 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 90 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 91 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 92 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 93 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 94 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 95 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 96 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 97 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 98 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 99 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 0 +12:34:56.78 .......... y = 0 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 1 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 2 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 0 +12:34:56.78 .......... y = 1 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 1 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 2 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 0 +12:34:56.78 .......... y = 2 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 1 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 2 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 + 12:34:56.78 ...... x = 1 + 12:34:56.78 2 | def foo(x): + 12:34:56.78 3 | return x ** 2 + 12:34:56.78 <<< Return value from foo: 1 +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) +12:34:56.78 .......... x = 1 +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 + 12:34:56.78 ...... x = 2 + 12:34:56.78 2 | def foo(x): + 12:34:56.78 3 | return x ** 2 + 12:34:56.78 <<< Return value from foo: 4 +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) +12:34:56.78 .......... x = 2 +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) +12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) +12:34:56.78 .......... x = 1 +12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) +12:34:56.78 .......... x = 2 +12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) +12:34:56.78 22 | bar() + 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 + 12:34:56.78 11 | def bar(): + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 + 12:34:56.78 ...... _x = 1 + 12:34:56.78 6 | def no_trace(_x): + 12:34:56.78 7 | return 3 + 12:34:56.78 <<< Return value from no_trace: 3 + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 .......... x = 1 + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 + 12:34:56.78 ...... _x = 2 + 12:34:56.78 6 | def no_trace(_x): + 12:34:56.78 7 | return 3 + 12:34:56.78 <<< Return value from no_trace: 3 + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 .......... x = 2 + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 <<< Return value from bar: None +12:34:56.78 22 | bar() +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/2.7/confusing_decorator_lines.txt b/tests/sample_results/3.12/confusing_decorator_lines.txt similarity index 100% rename from tests/sample_results/2.7/confusing_decorator_lines.txt rename to tests/sample_results/3.12/confusing_decorator_lines.txt diff --git a/tests/sample_results/3.6/decorator_exception.txt b/tests/sample_results/3.12/decorator_exception.txt similarity index 75% rename from tests/sample_results/3.6/decorator_exception.txt rename to tests/sample_results/3.12/decorator_exception.txt index cda77d9..52848d4 100644 --- a/tests/sample_results/3.6/decorator_exception.txt +++ b/tests/sample_results/3.12/decorator_exception.txt @@ -2,7 +2,9 @@ 12:34:56.78 5 | def main(): 12:34:56.78 6 | try: 12:34:56.78 7 | @int -12:34:56.78 !!! TypeError: int() argument must be a string, a bytes-like object or a number, not 'function' +12:34:56.78 8 | def foo(): +12:34:56.78 7 | @int +12:34:56.78 !!! TypeError: int() argument must be a string, a bytes-like object or a real number, not 'function' 12:34:56.78 !!! When calling decorator: @int 12:34:56.78 10 | except: 12:34:56.78 11 | pass diff --git a/tests/sample_results/2.7/depth.txt b/tests/sample_results/3.12/depth.txt similarity index 100% rename from tests/sample_results/2.7/depth.txt rename to tests/sample_results/3.12/depth.txt diff --git a/tests/sample_results/3.4/django_sample.txt b/tests/sample_results/3.12/django_sample.txt similarity index 100% rename from tests/sample_results/3.4/django_sample.txt rename to tests/sample_results/3.12/django_sample.txt diff --git a/tests/sample_results/2.7/enabled.txt b/tests/sample_results/3.12/enabled.txt similarity index 100% rename from tests/sample_results/2.7/enabled.txt rename to tests/sample_results/3.12/enabled.txt diff --git a/tests/sample_results/2.7/enabled2.txt b/tests/sample_results/3.12/enabled2.txt similarity index 100% rename from tests/sample_results/2.7/enabled2.txt rename to tests/sample_results/3.12/enabled2.txt diff --git a/tests/sample_results/2.7/end_finally.txt b/tests/sample_results/3.12/end_finally.txt similarity index 90% rename from tests/sample_results/2.7/end_finally.txt rename to tests/sample_results/3.12/end_finally.txt index afb39f2..7167c87 100644 --- a/tests/sample_results/2.7/end_finally.txt +++ b/tests/sample_results/3.12/end_finally.txt @@ -14,4 +14,4 @@ 12:34:56.78 8 | raise TypeError('bad') 12:34:56.78 !!! TypeError: bad 12:34:56.78 11 | pass -12:34:56.78 ??? Call either returned None or ended by exception \ No newline at end of file +12:34:56.78 !!! Call ended by exception \ No newline at end of file diff --git a/tests/sample_results/2.7/exception.txt b/tests/sample_results/3.12/exception.txt similarity index 97% rename from tests/sample_results/2.7/exception.txt rename to tests/sample_results/3.12/exception.txt index bbc62ec..d3f8e33 100644 --- a/tests/sample_results/2.7/exception.txt +++ b/tests/sample_results/3.12/exception.txt @@ -10,7 +10,6 @@ 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 12:34:56.78 4 | def foo(): 12:34:56.78 5 | raise TypeError(''' - 12:34:56.78 7 | bad''') 12:34:56.78 !!! TypeError: 12:34:56.78 !!! very 12:34:56.78 !!! bad @@ -35,6 +34,7 @@ 12:34:56.78 26 | bob( 12:34:56.78 27 | 1, 12:34:56.78 28 | 2 +12:34:56.78 26 | bob( 12:34:56.78 !!! TypeError: 'NoneType' object is not callable 12:34:56.78 !!! When calling: bob( 12:34:56.78 1, @@ -47,6 +47,7 @@ 12:34:56.78 35 | or bob)( 12:34:56.78 36 | 1, 12:34:56.78 37 | 2 +12:34:56.78 34 | (None 12:34:56.78 !!! TypeError: 'NoneType' object is not callable 12:34:56.78 !!! When calling: (None 12:34:56.78 or bob)( diff --git a/tests/sample_results/3.6/f_string.txt b/tests/sample_results/3.12/f_string.txt similarity index 100% rename from tests/sample_results/3.6/f_string.txt rename to tests/sample_results/3.12/f_string.txt diff --git a/tests/sample_results/2.7/generator.txt b/tests/sample_results/3.12/generator.txt similarity index 100% rename from tests/sample_results/2.7/generator.txt rename to tests/sample_results/3.12/generator.txt diff --git a/tests/sample_results/2.7/generator_expression.txt b/tests/sample_results/3.12/generator_expression.txt similarity index 100% rename from tests/sample_results/2.7/generator_expression.txt rename to tests/sample_results/3.12/generator_expression.txt diff --git a/tests/sample_results/2.7/indentation.txt b/tests/sample_results/3.12/indentation.txt similarity index 100% rename from tests/sample_results/2.7/indentation.txt rename to tests/sample_results/3.12/indentation.txt diff --git a/tests/sample_results/2.7/install_enabled.txt b/tests/sample_results/3.12/install_enabled.txt similarity index 100% rename from tests/sample_results/2.7/install_enabled.txt rename to tests/sample_results/3.12/install_enabled.txt diff --git a/tests/sample_results/2.7/lambda_function.txt b/tests/sample_results/3.12/lambda_function.txt similarity index 100% rename from tests/sample_results/2.7/lambda_function.txt rename to tests/sample_results/3.12/lambda_function.txt diff --git a/tests/sample_results/2.7/long_variable.txt b/tests/sample_results/3.12/long_variable.txt similarity index 100% rename from tests/sample_results/2.7/long_variable.txt rename to tests/sample_results/3.12/long_variable.txt diff --git a/tests/sample_results/2.7/method_and_prefix.txt b/tests/sample_results/3.12/method_and_prefix.txt similarity index 100% rename from tests/sample_results/2.7/method_and_prefix.txt rename to tests/sample_results/3.12/method_and_prefix.txt diff --git a/tests/sample_results/2.7/multiline.txt b/tests/sample_results/3.12/multiline.txt similarity index 80% rename from tests/sample_results/2.7/multiline.txt rename to tests/sample_results/3.12/multiline.txt index 020f741..3ef5a52 100644 --- a/tests/sample_results/2.7/multiline.txt +++ b/tests/sample_results/3.12/multiline.txt @@ -4,45 +4,56 @@ 12:34:56.78 7 | [ 12:34:56.78 8 | bar(), # 1 12:34:56.78 9 | bar(), # 2 +12:34:56.78 7 | [ +12:34:56.78 6 | x = ( 12:34:56.78 .......... x = [None, None] 12:34:56.78 .......... len(x) = 2 12:34:56.78 13 | with context( 12:34:56.78 14 | bar(), # 1 12:34:56.78 15 | bar(), # 2 +12:34:56.78 13 | with context( 12:34:56.78 17 | try: 12:34:56.78 18 | for _ in [ 12:34:56.78 19 | bar( 12:34:56.78 20 | bar(), # 1 12:34:56.78 21 | bar(), # 2 +12:34:56.78 19 | bar( +12:34:56.78 18 | for _ in [ 12:34:56.78 .................. _ = None 12:34:56.78 24 | while bar( 12:34:56.78 25 | bar(), # 1 12:34:56.78 26 | bar(), # 2 +12:34:56.78 24 | while bar( 12:34:56.78 30 | bar() 12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 12:34:56.78 32 | bar() 12:34:56.78 33 | raise ValueError 12:34:56.78 !!! ValueError -12:34:56.78 34 | except ( 12:34:56.78 35 | ValueError, 12:34:56.78 36 | TypeError, +12:34:56.78 34 | except ( 12:34:56.78 38 | pass 12:34:56.78 40 | bar( 12:34:56.78 42 | bar(), # 1 12:34:56.78 43 | bar(), # 2 +12:34:56.78 41 | [ +12:34:56.78 40 | bar( +12:34:56.78 13 | with context( 12:34:56.78 47 | with context( 12:34:56.78 48 | bar(), # 1 12:34:56.78 49 | bar(), # 2 +12:34:56.78 47 | with context( 12:34:56.78 51 | if bar( 12:34:56.78 52 | bar(), # 1 12:34:56.78 53 | bar(), # 2 +12:34:56.78 51 | if bar( 12:34:56.78 56 | elif [ 12:34:56.78 57 | bar( 12:34:56.78 58 | bar(), # 1 12:34:56.78 59 | bar(), # 2 +12:34:56.78 57 | bar( +12:34:56.78 56 | elif [ 12:34:56.78 62 | pass +12:34:56.78 47 | with context( 12:34:56.78 64 | return x 12:34:56.78 <<< Return value from main: [None, None] \ No newline at end of file diff --git a/tests/sample_results/2.7/no_columns.txt b/tests/sample_results/3.12/no_columns.txt similarity index 100% rename from tests/sample_results/2.7/no_columns.txt rename to tests/sample_results/3.12/no_columns.txt diff --git a/tests/sample_results/2.7/pandas_sample.txt b/tests/sample_results/3.12/pandas_sample.txt similarity index 87% rename from tests/sample_results/2.7/pandas_sample.txt rename to tests/sample_results/3.12/pandas_sample.txt index 5384cb5..9502011 100644 --- a/tests/sample_results/2.7/pandas_sample.txt +++ b/tests/sample_results/3.12/pandas_sample.txt @@ -28,8 +28,8 @@ 12:34:56.78 [100 rows x 100 columns] 12:34:56.78 .......... df.shape = (100, 100) 12:34:56.78 11 | series = df[0] -12:34:56.78 .......... series = 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 +12:34:56.78 .......... series = 0 = np.int64(0); 1 = np.int64(100); 2 = np.int64(200); ...; 97 = np.int64(9700); 98 = np.int64(9800); 99 = np.int64(9900) 12:34:56.78 .......... series.shape = (100,) 12:34:56.78 .......... series.dtype = dtype('int64') 12:34:56.78 12 | return series -12:34:56.78 <<< Return value from main: 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 \ No newline at end of file +12:34:56.78 <<< Return value from main: 0 = np.int64(0); 1 = np.int64(100); 2 = np.int64(200); ...; 97 = np.int64(9700); 98 = np.int64(9800); 99 = np.int64(9900) \ No newline at end of file diff --git a/tests/sample_results/2.7/pp.txt b/tests/sample_results/3.12/pp.txt similarity index 94% rename from tests/sample_results/2.7/pp.txt rename to tests/sample_results/3.12/pp.txt index e79df44..9bb2df2 100644 --- a/tests/sample_results/2.7/pp.txt +++ b/tests/sample_results/3.12/pp.txt @@ -25,9 +25,11 @@ 12:34:56.78 .......... len(lst) = 30 12:34:56.78 11 | pp.deep(lambda: list( 12:34:56.78 LOG: -12:34:56.78 ............ list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] = at 0xABC> -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> +12:34:56.78 ............ ( +12:34:56.78 list(a + b for a in [1, 2]) +12:34:56.78 for b in [3, 4] +12:34:56.78 ) = at 0xABC> +12:34:56.78 .................... (a + b for a in [1, 2]) = at 0xABC> 12:34:56.78 ............................ a = 1 12:34:56.78 ............................ b = 3 12:34:56.78 ........................ a + b = 4 @@ -35,7 +37,7 @@ 12:34:56.78 ............................ b = 3 12:34:56.78 ........................ a + b = 5 12:34:56.78 ................ list(a + b for a in [1, 2]) = [4, 5] -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> +12:34:56.78 .................... (a + b for a in [1, 2]) = at 0xABC> 12:34:56.78 ............................ a = 1 12:34:56.78 ............................ b = 4 12:34:56.78 ........................ a + b = 5 diff --git a/tests/sample_results/3.6/pp_custom_pformat.txt b/tests/sample_results/3.12/pp_custom_pformat.txt similarity index 98% rename from tests/sample_results/3.6/pp_custom_pformat.txt rename to tests/sample_results/3.12/pp_custom_pformat.txt index adf5470..7db2c83 100644 --- a/tests/sample_results/3.6/pp_custom_pformat.txt +++ b/tests/sample_results/3.12/pp_custom_pformat.txt @@ -14,6 +14,7 @@ Test with custom pformat 12:34:56.78 .......... y = 2 12:34:56.78 12 | y = 3 # custom pformat is not used here 12:34:56.78 .............. y = 3 +12:34:56.78 11 | with snoop: 12:34:56.78 <<< Exit with block in test_misc 12:34:56.78 LOG: 12:34:56.78 .... d = custom(['a long key to be pretty printed prettily', ['prettyprinter prints datetime with keyword arguments:', datetime.datetime(1970, 1, 1, 0, 0, 42)]]) diff --git a/tests/sample_results/3.6/pp_exception.txt b/tests/sample_results/3.12/pp_exception.txt similarity index 84% rename from tests/sample_results/3.6/pp_exception.txt rename to tests/sample_results/3.12/pp_exception.txt index 025dfca..a0511a6 100644 --- a/tests/sample_results/3.6/pp_exception.txt +++ b/tests/sample_results/3.12/pp_exception.txt @@ -17,9 +17,13 @@ Traceback (most recent call last): pp.deep(lambda: x + y + bad() + 2) return PPEvent(self, [arg], deep=True).returns + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ self.returns = self.deep_pp(call_arg.body, frame) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return eval(code, frame.f_globals, frame.f_locals) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pp.deep(lambda: x + y + bad() + 2) + ^^^^^ raise TypeError('bad') TypeError: bad 12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/2.7/recursion.txt b/tests/sample_results/3.12/recursion.txt similarity index 100% rename from tests/sample_results/2.7/recursion.txt rename to tests/sample_results/3.12/recursion.txt diff --git a/tests/sample_results/3.5/spy.txt b/tests/sample_results/3.12/spy.txt similarity index 79% rename from tests/sample_results/3.5/spy.txt rename to tests/sample_results/3.12/spy.txt index d1a3204..88b70ff 100644 --- a/tests/sample_results/3.5/spy.txt +++ b/tests/sample_results/3.12/spy.txt @@ -2,12 +2,12 @@ 12:34:56.78 6 | def foo(): 12:34:56.78 7 | x = pp.deep(lambda: 1 + 2) 12:34:56.78 LOG: -12:34:56.78 .... = 3 +12:34:56.78 .... 1 + 2 = 3 12:34:56.78 .......... x = 3 12:34:56.78 8 | y = pp(3 + 4, 5 + 6)[0] 12:34:56.78 LOG: -12:34:56.78 .... = 7 -12:34:56.78 .... = 11 +12:34:56.78 .... 3 + 4 = 7 +12:34:56.78 .... 5 + 6 = 11 12:34:56.78 .......... y = 7 12:34:56.78 9 | return x + y 12:34:56.78 <<< Return value from foo: 10 @@ -15,8 +15,8 @@ 12:34:56.78 14 | def bar(): 12:34:56.78 15 | result = pp(4 + 6, 7 + 8) 12:34:56.78 LOG: -12:34:56.78 .... = 10 -12:34:56.78 .... = 15 +12:34:56.78 .... 4 + 6 = 10 +12:34:56.78 .... 7 + 8 = 15 12:34:56.78 .......... result = (10, 15) 12:34:56.78 .......... len(result) = 2 12:34:56.78 16 | return result[0] diff --git a/tests/sample_results/2.7/threads.txt b/tests/sample_results/3.12/threads.txt similarity index 100% rename from tests/sample_results/2.7/threads.txt rename to tests/sample_results/3.12/threads.txt diff --git a/tests/sample_results/3.12/unavailable_source.txt b/tests/sample_results/3.12/unavailable_source.txt new file mode 100644 index 0000000..d330b61 --- /dev/null +++ b/tests/sample_results/3.12/unavailable_source.txt @@ -0,0 +1,8 @@ +12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 +12:34:56.78 4 | SOURCE IS UNAVAILABLE +12:34:56.78 5 | SOURCE IS UNAVAILABLE +12:34:56.78 <<< Return value from foo: 3 +12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 +12:34:56.78  4 | SOURCE IS UNAVAILABLE +12:34:56.78  5 | SOURCE IS UNAVAILABLE +12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/2.7/var_order.txt b/tests/sample_results/3.12/var_order.txt similarity index 100% rename from tests/sample_results/2.7/var_order.txt rename to tests/sample_results/3.12/var_order.txt diff --git a/tests/sample_results/3.4/variables_classes.txt b/tests/sample_results/3.12/variables_classes.txt similarity index 92% rename from tests/sample_results/3.4/variables_classes.txt rename to tests/sample_results/3.12/variables_classes.txt index d7ad679..989c594 100644 --- a/tests/sample_results/3.4/variables_classes.txt +++ b/tests/sample_results/3.12/variables_classes.txt @@ -1,6 +1,7 @@ 12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 12:34:56.78 20 | def main(): 12:34:56.78 21 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) +12:34:56.78 .......... _d = OrderedDict({'a': 1, 'b': 2, 'c': 'ignore'}) 12:34:56.78 .......... len(_d) = 3 12:34:56.78 .......... _d['a'] = 1 12:34:56.78 .......... _d['b'] = 2 diff --git a/tests/sample_results/2.7/watch.txt b/tests/sample_results/3.12/watch.txt similarity index 100% rename from tests/sample_results/2.7/watch.txt rename to tests/sample_results/3.12/watch.txt diff --git a/tests/sample_results/3.5/watch_explode.txt b/tests/sample_results/3.12/watch_explode.txt similarity index 93% rename from tests/sample_results/3.5/watch_explode.txt rename to tests/sample_results/3.12/watch_explode.txt index 2976dc4..7bd65df 100644 --- a/tests/sample_results/3.5/watch_explode.txt +++ b/tests/sample_results/3.12/watch_explode.txt @@ -1,6 +1,7 @@ 12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 12:34:56.78 13 | def main(): 12:34:56.78 14 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) +12:34:56.78 .......... _d = OrderedDict({'a': 1, 'b': 2, 'c': 'ignore'}) 12:34:56.78 .......... len(_d) = 3 12:34:56.78 .......... _d['a'] = 1 12:34:56.78 .......... _d['b'] = 2 diff --git a/tests/sample_results/2.7/watch_extras.txt b/tests/sample_results/3.12/watch_extras.txt similarity index 100% rename from tests/sample_results/2.7/watch_extras.txt rename to tests/sample_results/3.12/watch_extras.txt diff --git a/tests/sample_results/3.6/with_block.txt b/tests/sample_results/3.12/with_block.txt similarity index 94% rename from tests/sample_results/3.6/with_block.txt rename to tests/sample_results/3.12/with_block.txt index fd46d74..2abbc8b 100644 --- a/tests/sample_results/3.6/with_block.txt +++ b/tests/sample_results/3.12/with_block.txt @@ -18,6 +18,7 @@ 12:34:56.78 <<< Return value from bar2: None 12:34:56.78 18 | bar2(x) 12:34:56.78 19 | qux() + 12:34:56.78 13 | with snoop: 12:34:56.78 <<< Exit with block in foo 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 12:34:56.78 ...... _x = 9 @@ -33,6 +34,7 @@ 12:34:56.78 <<< Return value from bar2: None 12:34:56.78 18 | bar2(x) 12:34:56.78 19 | qux() +12:34:56.78 13 | with snoop: 12:34:56.78 <<< Exit with block in foo 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 12:34:56.78 ...... _x = 9 @@ -46,4 +48,5 @@ 12:34:56.78 >>> Re-enter generator gen in File "/path/to_file.py", line 48 12:34:56.78 ...................... i = 1 12:34:56.78 48 | yield i +12:34:56.78 47 | with snoop: 12:34:56.78 <<< Exit with block in gen \ No newline at end of file diff --git a/tests/sample_results/3.4/with_block_depth.txt b/tests/sample_results/3.12/with_block_depth.txt similarity index 94% rename from tests/sample_results/3.4/with_block_depth.txt rename to tests/sample_results/3.12/with_block_depth.txt index 7063835..be4f886 100644 --- a/tests/sample_results/3.4/with_block_depth.txt +++ b/tests/sample_results/3.12/with_block_depth.txt @@ -17,4 +17,5 @@ 12:34:56.78 <<< Return value from f2: 10 12:34:56.78 22 | result1 = f2(5) 12:34:56.78 .............. result1 = 10 +12:34:56.78 21 | with snoop.snoop(depth=3): 12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/2.7/with_no_args.txt b/tests/sample_results/3.12/with_no_args.txt similarity index 88% rename from tests/sample_results/2.7/with_no_args.txt rename to tests/sample_results/3.12/with_no_args.txt index 12f7483..9ea88a9 100644 --- a/tests/sample_results/2.7/with_no_args.txt +++ b/tests/sample_results/3.12/with_no_args.txt @@ -2,6 +2,7 @@ 12:34:56.78 .......... x = 1 12:34:56.78 7 | result = 2 + 2 12:34:56.78 .............. result = 4 +12:34:56.78 6 | with snoop: 12:34:56.78 <<< Exit with block in main 12:34:56.78 LOG: 12:34:56.78 .... x = 1 \ No newline at end of file diff --git a/tests/sample_results/3.4/all_columns.txt b/tests/sample_results/3.13/all_columns.txt similarity index 100% rename from tests/sample_results/3.4/all_columns.txt rename to tests/sample_results/3.13/all_columns.txt diff --git a/tests/sample_results/3.5/cellvars.txt b/tests/sample_results/3.13/cellvars.txt similarity index 97% rename from tests/sample_results/3.5/cellvars.txt rename to tests/sample_results/3.13/cellvars.txt index b0519ec..cfd3adc 100644 --- a/tests/sample_results/3.5/cellvars.txt +++ b/tests/sample_results/3.13/cellvars.txt @@ -27,4 +27,5 @@ 12:34:56.78 <<< Return value from f2: 42 12:34:56.78 17 | result1 = f2(42) 12:34:56.78 .............. result1 = 42 +12:34:56.78 16 | with snoop(depth=4): 12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/3.13/color.txt b/tests/sample_results/3.13/color.txt new file mode 100644 index 0000000..c521f97 --- /dev/null +++ b/tests/sample_results/3.13/color.txt @@ -0,0 +1,128 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | pp( +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1000 +12:34:56.78 .......... y = 2000 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1001 +12:34:56.78 .......... y = 2001 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1002 +12:34:56.78 .......... y = 2002 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1003 +12:34:56.78 .......... y = 2003 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1004 +12:34:56.78 .......... y = 2004 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1005 +12:34:56.78 .......... y = 2005 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1006 +12:34:56.78 .......... y = 2006 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1007 +12:34:56.78 .......... y = 2007 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1008 +12:34:56.78 .......... y = 2008 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1009 +12:34:56.78 .......... y = 2009 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1010 +12:34:56.78 .......... y = 2010 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1011 +12:34:56.78 .......... y = 2011 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1012 +12:34:56.78 .......... y = 2012 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1013 +12:34:56.78 .......... y = 2013 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1014 +12:34:56.78 .......... y = 2014 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1015 +12:34:56.78 .......... y = 2015 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1016 +12:34:56.78 .......... y = 2016 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1017 +12:34:56.78 .......... y = 2017 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1018 +12:34:56.78 .......... y = 2018 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78 .......... x = 1019 +12:34:56.78 .......... y = 2019 +12:34:56.78  23 | x + y +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  22 | [ +12:34:56.78  21 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  ] = [3000, +12:34:56.78  3002, +12:34:56.78  3004, +12:34:56.78  3006, +12:34:56.78  3008, +12:34:56.78  3010, +12:34:56.78  3012, +12:34:56.78  3014, +12:34:56.78  3016, +12:34:56.78  3018, +12:34:56.78  3020, +12:34:56.78  3022, +12:34:56.78  3024, +12:34:56.78  3026, +12:34:56.78  3028, +12:34:56.78  3030, +12:34:56.78  3032, +12:34:56.78  3034, +12:34:56.78  3036, +12:34:56.78  3038] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.13/color_without_comprehension.txt b/tests/sample_results/3.13/color_without_comprehension.txt new file mode 100644 index 0000000..0b30795 --- /dev/null +++ b/tests/sample_results/3.13/color_without_comprehension.txt @@ -0,0 +1,28 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | x = 1 +12:34:56.78  22 | y = 2 +12:34:56.78  23 | pp( +12:34:56.78  25 | x + y +12:34:56.78  24 | [ +12:34:56.78  23 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  ] = [3] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.13/comprehensions.txt b/tests/sample_results/3.13/comprehensions.txt new file mode 100644 index 0000000..f811092 --- /dev/null +++ b/tests/sample_results/3.13/comprehensions.txt @@ -0,0 +1,474 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 +12:34:56.78 16 | def main(): +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 0 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 1 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 2 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 3 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 4 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 5 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 6 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 7 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 8 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 9 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 10 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 11 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 12 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 13 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 14 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 15 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 16 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 17 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 18 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 19 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 20 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 21 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 22 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 23 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 24 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 25 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 26 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 27 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 28 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 29 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 30 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 31 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 32 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 33 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 34 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 35 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 36 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 37 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 38 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 39 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 40 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 41 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 42 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 43 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 44 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 45 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 46 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 47 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 48 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 49 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 50 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 51 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 52 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 53 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 54 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 55 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 56 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 57 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 58 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 59 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 60 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 61 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 62 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 63 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 64 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 65 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 66 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 67 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 68 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 69 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 70 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 71 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 72 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 73 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 74 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 75 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 76 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 77 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 78 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 79 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 80 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 81 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 82 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 83 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 84 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 85 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 86 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 87 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 88 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 89 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 90 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 91 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 92 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 93 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 94 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 95 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 96 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 97 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 98 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 .......... x = 99 +12:34:56.78 17 | str({x for x in list(range(100))}) +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 0 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 1 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 2 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 3 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 4 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 5 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 6 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 7 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 8 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 9 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 10 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 11 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 12 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 13 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 14 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 15 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 16 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 17 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 18 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 19 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 20 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 21 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 22 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 23 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 24 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 25 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 26 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 27 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 28 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 29 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 30 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 31 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 32 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 33 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 34 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 35 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 36 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 37 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 38 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 39 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 40 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 41 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 42 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 43 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 44 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 45 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 46 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 47 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 48 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 49 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 50 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 51 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 52 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 53 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 54 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 55 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 56 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 57 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 58 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 59 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 60 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 61 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 62 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 63 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 64 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 65 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 66 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 67 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 68 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 69 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 70 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 71 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 72 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 73 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 74 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 75 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 76 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 77 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 78 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 79 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 80 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 81 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 82 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 83 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 84 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 85 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 86 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 87 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 88 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 89 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 90 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 91 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 92 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 93 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 94 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 95 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 96 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 97 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 98 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 .......... x = 99 +12:34:56.78 18 | str({x: x for x in list(range(100))}) +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 0 +12:34:56.78 .......... y = 0 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 1 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 2 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 0 +12:34:56.78 .......... y = 1 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 1 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 2 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 0 +12:34:56.78 .......... y = 2 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 1 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 .......... x = 2 +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 + 12:34:56.78 ...... x = 1 + 12:34:56.78 2 | def foo(x): + 12:34:56.78 3 | return x ** 2 + 12:34:56.78 <<< Return value from foo: 1 +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) +12:34:56.78 .......... x = 1 +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 + 12:34:56.78 ...... x = 2 + 12:34:56.78 2 | def foo(x): + 12:34:56.78 3 | return x ** 2 + 12:34:56.78 <<< Return value from foo: 4 +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) +12:34:56.78 .......... x = 2 +12:34:56.78 20 | str({foo(x) for x in (1, 2)}) +12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) +12:34:56.78 .......... x = 1 +12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) +12:34:56.78 .......... x = 2 +12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) +12:34:56.78 22 | bar() + 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 + 12:34:56.78 11 | def bar(): + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 + 12:34:56.78 ...... _x = 1 + 12:34:56.78 6 | def no_trace(_x): + 12:34:56.78 7 | return 3 + 12:34:56.78 <<< Return value from no_trace: 3 + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 .......... x = 1 + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 + 12:34:56.78 ...... _x = 2 + 12:34:56.78 6 | def no_trace(_x): + 12:34:56.78 7 | return 3 + 12:34:56.78 <<< Return value from no_trace: 3 + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 .......... x = 2 + 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) + 12:34:56.78 <<< Return value from bar: None +12:34:56.78 22 | bar() +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.4/confusing_decorator_lines.txt b/tests/sample_results/3.13/confusing_decorator_lines.txt similarity index 100% rename from tests/sample_results/3.4/confusing_decorator_lines.txt rename to tests/sample_results/3.13/confusing_decorator_lines.txt diff --git a/tests/sample_results/3.5/decorator_exception.txt b/tests/sample_results/3.13/decorator_exception.txt similarity index 75% rename from tests/sample_results/3.5/decorator_exception.txt rename to tests/sample_results/3.13/decorator_exception.txt index cda77d9..52848d4 100644 --- a/tests/sample_results/3.5/decorator_exception.txt +++ b/tests/sample_results/3.13/decorator_exception.txt @@ -2,7 +2,9 @@ 12:34:56.78 5 | def main(): 12:34:56.78 6 | try: 12:34:56.78 7 | @int -12:34:56.78 !!! TypeError: int() argument must be a string, a bytes-like object or a number, not 'function' +12:34:56.78 8 | def foo(): +12:34:56.78 7 | @int +12:34:56.78 !!! TypeError: int() argument must be a string, a bytes-like object or a real number, not 'function' 12:34:56.78 !!! When calling decorator: @int 12:34:56.78 10 | except: 12:34:56.78 11 | pass diff --git a/tests/sample_results/3.5/depth.txt b/tests/sample_results/3.13/depth.txt similarity index 100% rename from tests/sample_results/3.5/depth.txt rename to tests/sample_results/3.13/depth.txt diff --git a/tests/sample_results/3.5/django_sample.txt b/tests/sample_results/3.13/django_sample.txt similarity index 100% rename from tests/sample_results/3.5/django_sample.txt rename to tests/sample_results/3.13/django_sample.txt diff --git a/tests/sample_results/3.5/enabled.txt b/tests/sample_results/3.13/enabled.txt similarity index 100% rename from tests/sample_results/3.5/enabled.txt rename to tests/sample_results/3.13/enabled.txt diff --git a/tests/sample_results/3.4/enabled2.txt b/tests/sample_results/3.13/enabled2.txt similarity index 100% rename from tests/sample_results/3.4/enabled2.txt rename to tests/sample_results/3.13/enabled2.txt diff --git a/tests/sample_results/3.4/end_finally.txt b/tests/sample_results/3.13/end_finally.txt similarity index 90% rename from tests/sample_results/3.4/end_finally.txt rename to tests/sample_results/3.13/end_finally.txt index afb39f2..7167c87 100644 --- a/tests/sample_results/3.4/end_finally.txt +++ b/tests/sample_results/3.13/end_finally.txt @@ -14,4 +14,4 @@ 12:34:56.78 8 | raise TypeError('bad') 12:34:56.78 !!! TypeError: bad 12:34:56.78 11 | pass -12:34:56.78 ??? Call either returned None or ended by exception \ No newline at end of file +12:34:56.78 !!! Call ended by exception \ No newline at end of file diff --git a/tests/sample_results/3.5/exception.txt b/tests/sample_results/3.13/exception.txt similarity index 96% rename from tests/sample_results/3.5/exception.txt rename to tests/sample_results/3.13/exception.txt index bbc62ec..986ce49 100644 --- a/tests/sample_results/3.5/exception.txt +++ b/tests/sample_results/3.13/exception.txt @@ -10,7 +10,6 @@ 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 12:34:56.78 4 | def foo(): 12:34:56.78 5 | raise TypeError(''' - 12:34:56.78 7 | bad''') 12:34:56.78 !!! TypeError: 12:34:56.78 !!! very 12:34:56.78 !!! bad @@ -35,6 +34,7 @@ 12:34:56.78 26 | bob( 12:34:56.78 27 | 1, 12:34:56.78 28 | 2 +12:34:56.78 26 | bob( 12:34:56.78 !!! TypeError: 'NoneType' object is not callable 12:34:56.78 !!! When calling: bob( 12:34:56.78 1, @@ -45,8 +45,10 @@ 12:34:56.78 33 | try: 12:34:56.78 34 | (None 12:34:56.78 35 | or bob)( +12:34:56.78 34 | (None 12:34:56.78 36 | 1, 12:34:56.78 37 | 2 +12:34:56.78 34 | (None 12:34:56.78 !!! TypeError: 'NoneType' object is not callable 12:34:56.78 !!! When calling: (None 12:34:56.78 or bob)( diff --git a/tests/sample_results/3.7/f_string.txt b/tests/sample_results/3.13/f_string.txt similarity index 100% rename from tests/sample_results/3.7/f_string.txt rename to tests/sample_results/3.13/f_string.txt diff --git a/tests/sample_results/3.4/generator.txt b/tests/sample_results/3.13/generator.txt similarity index 100% rename from tests/sample_results/3.4/generator.txt rename to tests/sample_results/3.13/generator.txt diff --git a/tests/sample_results/3.4/generator_expression.txt b/tests/sample_results/3.13/generator_expression.txt similarity index 100% rename from tests/sample_results/3.4/generator_expression.txt rename to tests/sample_results/3.13/generator_expression.txt diff --git a/tests/sample_results/3.4/indentation.txt b/tests/sample_results/3.13/indentation.txt similarity index 100% rename from tests/sample_results/3.4/indentation.txt rename to tests/sample_results/3.13/indentation.txt diff --git a/tests/sample_results/3.4/install_enabled.txt b/tests/sample_results/3.13/install_enabled.txt similarity index 100% rename from tests/sample_results/3.4/install_enabled.txt rename to tests/sample_results/3.13/install_enabled.txt diff --git a/tests/sample_results/3.4/lambda_function.txt b/tests/sample_results/3.13/lambda_function.txt similarity index 100% rename from tests/sample_results/3.4/lambda_function.txt rename to tests/sample_results/3.13/lambda_function.txt diff --git a/tests/sample_results/3.4/long_variable.txt b/tests/sample_results/3.13/long_variable.txt similarity index 100% rename from tests/sample_results/3.4/long_variable.txt rename to tests/sample_results/3.13/long_variable.txt diff --git a/tests/sample_results/3.4/method_and_prefix.txt b/tests/sample_results/3.13/method_and_prefix.txt similarity index 100% rename from tests/sample_results/3.4/method_and_prefix.txt rename to tests/sample_results/3.13/method_and_prefix.txt diff --git a/tests/sample_results/3.4/multiline.txt b/tests/sample_results/3.13/multiline.txt similarity index 80% rename from tests/sample_results/3.4/multiline.txt rename to tests/sample_results/3.13/multiline.txt index 020f741..3ef5a52 100644 --- a/tests/sample_results/3.4/multiline.txt +++ b/tests/sample_results/3.13/multiline.txt @@ -4,45 +4,56 @@ 12:34:56.78 7 | [ 12:34:56.78 8 | bar(), # 1 12:34:56.78 9 | bar(), # 2 +12:34:56.78 7 | [ +12:34:56.78 6 | x = ( 12:34:56.78 .......... x = [None, None] 12:34:56.78 .......... len(x) = 2 12:34:56.78 13 | with context( 12:34:56.78 14 | bar(), # 1 12:34:56.78 15 | bar(), # 2 +12:34:56.78 13 | with context( 12:34:56.78 17 | try: 12:34:56.78 18 | for _ in [ 12:34:56.78 19 | bar( 12:34:56.78 20 | bar(), # 1 12:34:56.78 21 | bar(), # 2 +12:34:56.78 19 | bar( +12:34:56.78 18 | for _ in [ 12:34:56.78 .................. _ = None 12:34:56.78 24 | while bar( 12:34:56.78 25 | bar(), # 1 12:34:56.78 26 | bar(), # 2 +12:34:56.78 24 | while bar( 12:34:56.78 30 | bar() 12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 12:34:56.78 32 | bar() 12:34:56.78 33 | raise ValueError 12:34:56.78 !!! ValueError -12:34:56.78 34 | except ( 12:34:56.78 35 | ValueError, 12:34:56.78 36 | TypeError, +12:34:56.78 34 | except ( 12:34:56.78 38 | pass 12:34:56.78 40 | bar( 12:34:56.78 42 | bar(), # 1 12:34:56.78 43 | bar(), # 2 +12:34:56.78 41 | [ +12:34:56.78 40 | bar( +12:34:56.78 13 | with context( 12:34:56.78 47 | with context( 12:34:56.78 48 | bar(), # 1 12:34:56.78 49 | bar(), # 2 +12:34:56.78 47 | with context( 12:34:56.78 51 | if bar( 12:34:56.78 52 | bar(), # 1 12:34:56.78 53 | bar(), # 2 +12:34:56.78 51 | if bar( 12:34:56.78 56 | elif [ 12:34:56.78 57 | bar( 12:34:56.78 58 | bar(), # 1 12:34:56.78 59 | bar(), # 2 +12:34:56.78 57 | bar( +12:34:56.78 56 | elif [ 12:34:56.78 62 | pass +12:34:56.78 47 | with context( 12:34:56.78 64 | return x 12:34:56.78 <<< Return value from main: [None, None] \ No newline at end of file diff --git a/tests/sample_results/3.4/no_columns.txt b/tests/sample_results/3.13/no_columns.txt similarity index 100% rename from tests/sample_results/3.4/no_columns.txt rename to tests/sample_results/3.13/no_columns.txt diff --git a/tests/sample_results/3.5/pandas_sample.txt b/tests/sample_results/3.13/pandas_sample.txt similarity index 87% rename from tests/sample_results/3.5/pandas_sample.txt rename to tests/sample_results/3.13/pandas_sample.txt index 5384cb5..9502011 100644 --- a/tests/sample_results/3.5/pandas_sample.txt +++ b/tests/sample_results/3.13/pandas_sample.txt @@ -28,8 +28,8 @@ 12:34:56.78 [100 rows x 100 columns] 12:34:56.78 .......... df.shape = (100, 100) 12:34:56.78 11 | series = df[0] -12:34:56.78 .......... series = 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 +12:34:56.78 .......... series = 0 = np.int64(0); 1 = np.int64(100); 2 = np.int64(200); ...; 97 = np.int64(9700); 98 = np.int64(9800); 99 = np.int64(9900) 12:34:56.78 .......... series.shape = (100,) 12:34:56.78 .......... series.dtype = dtype('int64') 12:34:56.78 12 | return series -12:34:56.78 <<< Return value from main: 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 \ No newline at end of file +12:34:56.78 <<< Return value from main: 0 = np.int64(0); 1 = np.int64(100); 2 = np.int64(200); ...; 97 = np.int64(9700); 98 = np.int64(9800); 99 = np.int64(9900) \ No newline at end of file diff --git a/tests/sample_results/3.5/pp.txt b/tests/sample_results/3.13/pp.txt similarity index 94% rename from tests/sample_results/3.5/pp.txt rename to tests/sample_results/3.13/pp.txt index e79df44..9bb2df2 100644 --- a/tests/sample_results/3.5/pp.txt +++ b/tests/sample_results/3.13/pp.txt @@ -25,9 +25,11 @@ 12:34:56.78 .......... len(lst) = 30 12:34:56.78 11 | pp.deep(lambda: list( 12:34:56.78 LOG: -12:34:56.78 ............ list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] = at 0xABC> -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> +12:34:56.78 ............ ( +12:34:56.78 list(a + b for a in [1, 2]) +12:34:56.78 for b in [3, 4] +12:34:56.78 ) = at 0xABC> +12:34:56.78 .................... (a + b for a in [1, 2]) = at 0xABC> 12:34:56.78 ............................ a = 1 12:34:56.78 ............................ b = 3 12:34:56.78 ........................ a + b = 4 @@ -35,7 +37,7 @@ 12:34:56.78 ............................ b = 3 12:34:56.78 ........................ a + b = 5 12:34:56.78 ................ list(a + b for a in [1, 2]) = [4, 5] -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> +12:34:56.78 .................... (a + b for a in [1, 2]) = at 0xABC> 12:34:56.78 ............................ a = 1 12:34:56.78 ............................ b = 4 12:34:56.78 ........................ a + b = 5 diff --git a/tests/sample_results/pypy3.5/pp_custom_pformat.txt b/tests/sample_results/3.13/pp_custom_pformat.txt similarity index 98% rename from tests/sample_results/pypy3.5/pp_custom_pformat.txt rename to tests/sample_results/3.13/pp_custom_pformat.txt index adf5470..7db2c83 100644 --- a/tests/sample_results/pypy3.5/pp_custom_pformat.txt +++ b/tests/sample_results/3.13/pp_custom_pformat.txt @@ -14,6 +14,7 @@ Test with custom pformat 12:34:56.78 .......... y = 2 12:34:56.78 12 | y = 3 # custom pformat is not used here 12:34:56.78 .............. y = 3 +12:34:56.78 11 | with snoop: 12:34:56.78 <<< Exit with block in test_misc 12:34:56.78 LOG: 12:34:56.78 .... d = custom(['a long key to be pretty printed prettily', ['prettyprinter prints datetime with keyword arguments:', datetime.datetime(1970, 1, 1, 0, 0, 42)]]) diff --git a/tests/sample_results/3.5/pp_exception.txt b/tests/sample_results/3.13/pp_exception.txt similarity index 85% rename from tests/sample_results/3.5/pp_exception.txt rename to tests/sample_results/3.13/pp_exception.txt index 025dfca..cc76058 100644 --- a/tests/sample_results/3.5/pp_exception.txt +++ b/tests/sample_results/3.13/pp_exception.txt @@ -16,10 +16,14 @@ 12:34:56.78 11 | sample_traceback() Traceback (most recent call last): pp.deep(lambda: x + y + bad() + 2) + ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ return PPEvent(self, [arg], deep=True).returns + ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ self.returns = self.deep_pp(call_arg.body, frame) + ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ return eval(code, frame.f_globals, frame.f_locals) pp.deep(lambda: x + y + bad() + 2) + ~~~^^ raise TypeError('bad') TypeError: bad 12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.4/recursion.txt b/tests/sample_results/3.13/recursion.txt similarity index 100% rename from tests/sample_results/3.4/recursion.txt rename to tests/sample_results/3.13/recursion.txt diff --git a/tests/sample_results/2.7/spy.txt b/tests/sample_results/3.13/spy.txt similarity index 79% rename from tests/sample_results/2.7/spy.txt rename to tests/sample_results/3.13/spy.txt index d1a3204..88b70ff 100644 --- a/tests/sample_results/2.7/spy.txt +++ b/tests/sample_results/3.13/spy.txt @@ -2,12 +2,12 @@ 12:34:56.78 6 | def foo(): 12:34:56.78 7 | x = pp.deep(lambda: 1 + 2) 12:34:56.78 LOG: -12:34:56.78 .... = 3 +12:34:56.78 .... 1 + 2 = 3 12:34:56.78 .......... x = 3 12:34:56.78 8 | y = pp(3 + 4, 5 + 6)[0] 12:34:56.78 LOG: -12:34:56.78 .... = 7 -12:34:56.78 .... = 11 +12:34:56.78 .... 3 + 4 = 7 +12:34:56.78 .... 5 + 6 = 11 12:34:56.78 .......... y = 7 12:34:56.78 9 | return x + y 12:34:56.78 <<< Return value from foo: 10 @@ -15,8 +15,8 @@ 12:34:56.78 14 | def bar(): 12:34:56.78 15 | result = pp(4 + 6, 7 + 8) 12:34:56.78 LOG: -12:34:56.78 .... = 10 -12:34:56.78 .... = 15 +12:34:56.78 .... 4 + 6 = 10 +12:34:56.78 .... 7 + 8 = 15 12:34:56.78 .......... result = (10, 15) 12:34:56.78 .......... len(result) = 2 12:34:56.78 16 | return result[0] diff --git a/tests/sample_results/3.4/threads.txt b/tests/sample_results/3.13/threads.txt similarity index 100% rename from tests/sample_results/3.4/threads.txt rename to tests/sample_results/3.13/threads.txt diff --git a/tests/sample_results/3.13/unavailable_source.txt b/tests/sample_results/3.13/unavailable_source.txt new file mode 100644 index 0000000..d330b61 --- /dev/null +++ b/tests/sample_results/3.13/unavailable_source.txt @@ -0,0 +1,8 @@ +12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 +12:34:56.78 4 | SOURCE IS UNAVAILABLE +12:34:56.78 5 | SOURCE IS UNAVAILABLE +12:34:56.78 <<< Return value from foo: 3 +12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 +12:34:56.78  4 | SOURCE IS UNAVAILABLE +12:34:56.78  5 | SOURCE IS UNAVAILABLE +12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/3.4/var_order.txt b/tests/sample_results/3.13/var_order.txt similarity index 100% rename from tests/sample_results/3.4/var_order.txt rename to tests/sample_results/3.13/var_order.txt diff --git a/tests/sample_results/2.7/variables_classes.txt b/tests/sample_results/3.13/variables_classes.txt similarity index 92% rename from tests/sample_results/2.7/variables_classes.txt rename to tests/sample_results/3.13/variables_classes.txt index d7ad679..989c594 100644 --- a/tests/sample_results/2.7/variables_classes.txt +++ b/tests/sample_results/3.13/variables_classes.txt @@ -1,6 +1,7 @@ 12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 12:34:56.78 20 | def main(): 12:34:56.78 21 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) +12:34:56.78 .......... _d = OrderedDict({'a': 1, 'b': 2, 'c': 'ignore'}) 12:34:56.78 .......... len(_d) = 3 12:34:56.78 .......... _d['a'] = 1 12:34:56.78 .......... _d['b'] = 2 diff --git a/tests/sample_results/3.4/watch.txt b/tests/sample_results/3.13/watch.txt similarity index 100% rename from tests/sample_results/3.4/watch.txt rename to tests/sample_results/3.13/watch.txt diff --git a/tests/sample_results/3.4/watch_explode.txt b/tests/sample_results/3.13/watch_explode.txt similarity index 93% rename from tests/sample_results/3.4/watch_explode.txt rename to tests/sample_results/3.13/watch_explode.txt index 2976dc4..7bd65df 100644 --- a/tests/sample_results/3.4/watch_explode.txt +++ b/tests/sample_results/3.13/watch_explode.txt @@ -1,6 +1,7 @@ 12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 12:34:56.78 13 | def main(): 12:34:56.78 14 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) +12:34:56.78 .......... _d = OrderedDict({'a': 1, 'b': 2, 'c': 'ignore'}) 12:34:56.78 .......... len(_d) = 3 12:34:56.78 .......... _d['a'] = 1 12:34:56.78 .......... _d['b'] = 2 diff --git a/tests/sample_results/3.4/watch_extras.txt b/tests/sample_results/3.13/watch_extras.txt similarity index 100% rename from tests/sample_results/3.4/watch_extras.txt rename to tests/sample_results/3.13/watch_extras.txt diff --git a/tests/sample_results/3.5/with_block.txt b/tests/sample_results/3.13/with_block.txt similarity index 94% rename from tests/sample_results/3.5/with_block.txt rename to tests/sample_results/3.13/with_block.txt index fd46d74..2abbc8b 100644 --- a/tests/sample_results/3.5/with_block.txt +++ b/tests/sample_results/3.13/with_block.txt @@ -18,6 +18,7 @@ 12:34:56.78 <<< Return value from bar2: None 12:34:56.78 18 | bar2(x) 12:34:56.78 19 | qux() + 12:34:56.78 13 | with snoop: 12:34:56.78 <<< Exit with block in foo 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 12:34:56.78 ...... _x = 9 @@ -33,6 +34,7 @@ 12:34:56.78 <<< Return value from bar2: None 12:34:56.78 18 | bar2(x) 12:34:56.78 19 | qux() +12:34:56.78 13 | with snoop: 12:34:56.78 <<< Exit with block in foo 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 12:34:56.78 ...... _x = 9 @@ -46,4 +48,5 @@ 12:34:56.78 >>> Re-enter generator gen in File "/path/to_file.py", line 48 12:34:56.78 ...................... i = 1 12:34:56.78 48 | yield i +12:34:56.78 47 | with snoop: 12:34:56.78 <<< Exit with block in gen \ No newline at end of file diff --git a/tests/sample_results/2.7/with_block_depth.txt b/tests/sample_results/3.13/with_block_depth.txt similarity index 94% rename from tests/sample_results/2.7/with_block_depth.txt rename to tests/sample_results/3.13/with_block_depth.txt index 7063835..be4f886 100644 --- a/tests/sample_results/2.7/with_block_depth.txt +++ b/tests/sample_results/3.13/with_block_depth.txt @@ -17,4 +17,5 @@ 12:34:56.78 <<< Return value from f2: 10 12:34:56.78 22 | result1 = f2(5) 12:34:56.78 .............. result1 = 10 +12:34:56.78 21 | with snoop.snoop(depth=3): 12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/3.7/with_no_args.txt b/tests/sample_results/3.13/with_no_args.txt similarity index 88% rename from tests/sample_results/3.7/with_no_args.txt rename to tests/sample_results/3.13/with_no_args.txt index 12f7483..9ea88a9 100644 --- a/tests/sample_results/3.7/with_no_args.txt +++ b/tests/sample_results/3.13/with_no_args.txt @@ -2,6 +2,7 @@ 12:34:56.78 .......... x = 1 12:34:56.78 7 | result = 2 + 2 12:34:56.78 .............. result = 4 +12:34:56.78 6 | with snoop: 12:34:56.78 <<< Exit with block in main 12:34:56.78 LOG: 12:34:56.78 .... x = 1 \ No newline at end of file diff --git a/tests/sample_results/3.4/cellvars.txt b/tests/sample_results/3.4/cellvars.txt deleted file mode 100644 index b0519ec..0000000 --- a/tests/sample_results/3.4/cellvars.txt +++ /dev/null @@ -1,30 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 16 -12:34:56.78 17 | result1 = f2(42) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 1 - 12:34:56.78 ...... a = 42 - 12:34:56.78 1 | def f2(a): - 12:34:56.78 2 | def f3(a): - 12:34:56.78 12 | return f3(a) - 12:34:56.78 >>> Call to f2..f3 in File "/path/to_file.py", line 2 - 12:34:56.78 .......... a = 42 - 12:34:56.78 2 | def f3(a): - 12:34:56.78 3 | x = 0 - 12:34:56.78 4 | x += 1 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 10 | return f4(a) - 12:34:56.78 >>> Call to f2..f3..f4 in File "/path/to_file.py", line 6 - 12:34:56.78 .............. _a = 42 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 7 | _y = x - 12:34:56.78 .................. _y = 1 - 12:34:56.78 8 | return 42 - 12:34:56.78 <<< Return value from f2..f3..f4: 42 - 12:34:56.78 10 | return f4(a) - 12:34:56.78 <<< Return value from f2..f3: 42 - 12:34:56.78 12 | return f3(a) - 12:34:56.78 <<< Return value from f2: 42 -12:34:56.78 17 | result1 = f2(42) -12:34:56.78 .............. result1 = 42 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/3.4/color.txt b/tests/sample_results/3.4/color.txt deleted file mode 100644 index 7a540b9..0000000 --- a/tests/sample_results/3.4/color.txt +++ /dev/null @@ -1,46 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  18 | or foo)() -12:34:56.78 !!! TypeError -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  23 | x + y -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) - 12:34:56.78 List comprehension: - 12:34:56.78  23 | x + y - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78 LOG: -12:34:56.78 .... <argument> = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.4/comprehensions.txt b/tests/sample_results/3.4/comprehensions.txt deleted file mode 100644 index 8f061aa..0000000 --- a/tests/sample_results/3.4/comprehensions.txt +++ /dev/null @@ -1,95 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 -12:34:56.78 16 | def main(): -12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ...} -12:34:56.78 17 | str({x for x in list(range(100))}) -12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, ...} -12:34:56.78 18 | str({x: x for x in list(range(100))}) -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {0, 1, 2} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 1 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {1, 2, 3} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 2 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {2, 3, 4} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0, 1, 2 - 12:34:56.78 Result: {0: {0, 1, 2}, 1: {1, 2, 3}, 2: {2, 3, 4}} -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 1 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 1 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 2 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 4 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {1, 4} -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) -12:34:56.78 22 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 - 12:34:56.78 11 | def bar(): - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 <<< Return value from bar: None -12:34:56.78 22 | bar() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.4/decorator_exception.txt b/tests/sample_results/3.4/decorator_exception.txt deleted file mode 100644 index 35fb795..0000000 --- a/tests/sample_results/3.4/decorator_exception.txt +++ /dev/null @@ -1,8 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | try: -12:34:56.78 7 | @int -12:34:56.78 !!! TypeError: int() argument must be a string, a bytes-like object or a number, not 'function' -12:34:56.78 10 | except: -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.4/depth.txt b/tests/sample_results/3.4/depth.txt deleted file mode 100644 index 44a7f9f..0000000 --- a/tests/sample_results/3.4/depth.txt +++ /dev/null @@ -1,24 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | result1 = f2(8) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 8 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 8 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 LOG: - 12:34:56.78 .... = 16 - 12:34:56.78 .......... result3 = 16 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 16 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 16 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 16 -12:34:56.78 21 | result1 = f2(8) -12:34:56.78 .......... result1 = 16 -12:34:56.78 22 | return result1 -12:34:56.78 <<< Return value from main: 16 \ No newline at end of file diff --git a/tests/sample_results/3.4/exception.txt b/tests/sample_results/3.4/exception.txt deleted file mode 100644 index 727779c..0000000 --- a/tests/sample_results/3.4/exception.txt +++ /dev/null @@ -1,64 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 19 -12:34:56.78 19 | def main(): -12:34:56.78 20 | try: -12:34:56.78 21 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 10 - 12:34:56.78 ...... _ = () - 12:34:56.78 10 | def bar(*_): - 12:34:56.78 11 | try: - 12:34:56.78 12 | str(foo()) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 - 12:34:56.78 4 | def foo(): - 12:34:56.78 5 | raise TypeError(''' - 12:34:56.78 7 | bad''') - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! Call ended by exception - 12:34:56.78 12 | str(foo()) - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 13 | except Exception: - 12:34:56.78 14 | str(1) - 12:34:56.78 15 | raise - 12:34:56.78 !!! Call ended by exception -12:34:56.78 21 | bar() -12:34:56.78 !!! TypeError: -12:34:56.78 !!! very -12:34:56.78 !!! bad -12:34:56.78 22 | except: -12:34:56.78 23 | pass -12:34:56.78 25 | try: -12:34:56.78 26 | bob( -12:34:56.78 27 | 1, -12:34:56.78 28 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 30 | except: -12:34:56.78 31 | pass -12:34:56.78 33 | try: -12:34:56.78 34 | (None -12:34:56.78 35 | or bob)( -12:34:56.78 36 | 1, -12:34:56.78 37 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 39 | except: -12:34:56.78 40 | pass -12:34:56.78 42 | x = [[[2]]] -12:34:56.78 .......... len(x) = 1 -12:34:56.78 44 | try: -12:34:56.78 45 | str(x[1][0][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 46 | except: -12:34:56.78 47 | pass -12:34:56.78 49 | try: -12:34:56.78 50 | str(x[0][1][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 51 | except: -12:34:56.78 52 | pass -12:34:56.78 54 | try: -12:34:56.78 55 | str(x[0][0][1]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 56 | except: -12:34:56.78 57 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.4/pp.txt b/tests/sample_results/3.4/pp.txt deleted file mode 100644 index c428d88..0000000 --- a/tests/sample_results/3.4/pp.txt +++ /dev/null @@ -1,107 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | pp(pp(x + 1) + max(*pp(y + 2, y + 3))) -12:34:56.78 LOG: -12:34:56.78 .... = 2 -12:34:56.78 LOG: -12:34:56.78 .... = 4 -12:34:56.78 .... = 5 -12:34:56.78 LOG: -12:34:56.78 .... = 7 -12:34:56.78 9 | assert pp.deep(lambda: x + 1 + max(y + 2, y + 3)) == 7 -12:34:56.78 LOG: -12:34:56.78 .... = 7 -12:34:56.78 10 | lst = list(range(30)) -12:34:56.78 .......... lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ..., 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .......... len(lst) = 30 -12:34:56.78 11 | pp.deep(lambda: list( -12:34:56.78 LOG: -12:34:56.78 .... = [[4, 5], -12:34:56.78 [5, 6], -12:34:56.78 0, -12:34:56.78 1, -12:34:56.78 2, -12:34:56.78 3, -12:34:56.78 4, -12:34:56.78 5, -12:34:56.78 6, -12:34:56.78 7, -12:34:56.78 8, -12:34:56.78 9, -12:34:56.78 10, -12:34:56.78 11, -12:34:56.78 12, -12:34:56.78 13, -12:34:56.78 14, -12:34:56.78 15, -12:34:56.78 16, -12:34:56.78 17, -12:34:56.78 18, -12:34:56.78 19, -12:34:56.78 20, -12:34:56.78 21, -12:34:56.78 22, -12:34:56.78 23, -12:34:56.78 24, -12:34:56.78 25, -12:34:56.78 26, -12:34:56.78 27, -12:34:56.78 28, -12:34:56.78 29] -12:34:56.78 15 | pp(dict.fromkeys(range(30), 4)) -12:34:56.78 LOG: -12:34:56.78 .... = {0: 4, -12:34:56.78 1: 4, -12:34:56.78 2: 4, -12:34:56.78 3: 4, -12:34:56.78 4: 4, -12:34:56.78 5: 4, -12:34:56.78 6: 4, -12:34:56.78 7: 4, -12:34:56.78 8: 4, -12:34:56.78 9: 4, -12:34:56.78 10: 4, -12:34:56.78 11: 4, -12:34:56.78 12: 4, -12:34:56.78 13: 4, -12:34:56.78 14: 4, -12:34:56.78 15: 4, -12:34:56.78 16: 4, -12:34:56.78 17: 4, -12:34:56.78 18: 4, -12:34:56.78 19: 4, -12:34:56.78 20: 4, -12:34:56.78 21: 4, -12:34:56.78 22: 4, -12:34:56.78 23: 4, -12:34:56.78 24: 4, -12:34:56.78 25: 4, -12:34:56.78 26: 4, -12:34:56.78 27: 4, -12:34:56.78 28: 4, -12:34:56.78 29: 4} -12:34:56.78 16 | pp.deep(lambda: BadRepr() and 1) -12:34:56.78 LOG: -12:34:56.78 .... = 1 -12:34:56.78 17 | pp.deep(lambda: 1 / 2) -12:34:56.78 LOG: -12:34:56.78 .... = 0.5 -12:34:56.78 19 | try: -12:34:56.78 20 | pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 LOG: -12:34:56.78 !!! ZeroDivisionError: division by zero -12:34:56.78 21 | except ZeroDivisionError: -12:34:56.78 22 | pass -12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) -12:34:56.78 LOG: -12:34:56.78 .... = ... at 0xABC> -12:34:56.78 .......... f = ... at 0xABC> -12:34:56.78 27 | f() - 12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 26 - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 <<< Return value from main..: 6 -12:34:56.78 27 | f() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.4/pp_custom_pformat.txt b/tests/sample_results/3.4/pp_custom_pformat.txt deleted file mode 100644 index 57cd6c7..0000000 --- a/tests/sample_results/3.4/pp_custom_pformat.txt +++ /dev/null @@ -1,47 +0,0 @@ -Test with custom pformat -12:34:56.78 LOG: -12:34:56.78 .... = custom(1) -12:34:56.78 LOG: -12:34:56.78 .... = custom(3) -12:34:56.78 LOG: -12:34:56.78 .... = custom(5) -12:34:56.78 >>> Enter with block in test_misc in File "/path/to_file.py", line 11 -12:34:56.78 .......... x = 1 -12:34:56.78 .......... y = 2 -12:34:56.78 12 | y = 3 # custom pformat is not used here -12:34:56.78 .............. y = 3 -12:34:56.78 <<< Exit with block in test_misc -12:34:56.78 LOG: -12:34:56.78 .... = custom(['a long key to be pretty printed prettily', ['prettyprinter prints datetime with keyword arguments:', datetime.datetime(1970, 1, 1, 0, 0, 42)]]) - -Test without prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... = ['a long key to be pretty printed prettily', -12:34:56.78 ['prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42)]] - -Test with prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... = ['a long key to be pretty printed prettily', -12:34:56.78 ['prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42)]] - -Test without prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42), -12:34:56.78 ], -12:34:56.78 ] - -Test with prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42), -12:34:56.78 ], -12:34:56.78 ] \ No newline at end of file diff --git a/tests/sample_results/3.4/pp_exception.txt b/tests/sample_results/3.4/pp_exception.txt deleted file mode 100644 index fa6f369..0000000 --- a/tests/sample_results/3.4/pp_exception.txt +++ /dev/null @@ -1,24 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | try: -12:34:56.78 9 | pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 LOG: -12:34:56.78 !!! TypeError: bad -12:34:56.78 10 | except: -12:34:56.78 11 | sample_traceback() -Traceback (most recent call last): - assert not NO_ASTTOKENS -AssertionError - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - pp.deep(lambda: x + y + bad() + 2) - return PPEvent(self, [arg], deep=True).returns - self.returns = args[0] = args[0]() - pp.deep(lambda: x + y + bad() + 2) - raise TypeError('bad') -TypeError: bad -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.4/unavailable_source.txt b/tests/sample_results/3.4/unavailable_source.txt deleted file mode 100644 index af9a4d2..0000000 --- a/tests/sample_results/3.4/unavailable_source.txt +++ /dev/null @@ -1,8 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78 4 | SOURCE IS UNAVAILABLE -12:34:56.78 5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/3.4/with_block.txt b/tests/sample_results/3.4/with_block.txt deleted file mode 100644 index fd46d74..0000000 --- a/tests/sample_results/3.4/with_block.txt +++ /dev/null @@ -1,49 +0,0 @@ -12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 -12:34:56.78 .......... x = 2 -12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 - 12:34:56.78 .......... x = 1 - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Call to bar1 in File "/path/to_file.py", line 26 - 12:34:56.78 ...... _x = 0 - 12:34:56.78 26 | def bar1(_x): - 12:34:56.78 27 | qux() - 12:34:56.78 <<< Return value from bar1: None - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None - 12:34:56.78 18 | bar2(x) - 12:34:56.78 19 | qux() - 12:34:56.78 <<< Exit with block in foo - 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 - 12:34:56.78 ...... _x = 9 - 12:34:56.78 36 | def bar3(_x): - 12:34:56.78 37 | qux() - 12:34:56.78 <<< Return value from bar3: None -12:34:56.78 17 | foo(x - 1) -12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None -12:34:56.78 18 | bar2(x) -12:34:56.78 19 | qux() -12:34:56.78 <<< Exit with block in foo -12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 -12:34:56.78 ...... _x = 9 -12:34:56.78 36 | def bar3(_x): -12:34:56.78 37 | qux() -12:34:56.78 <<< Return value from bar3: None -12:34:56.78 >>> Enter with block in gen in File "/path/to_file.py", line 47 -12:34:56.78 .................. i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Yield value from gen: 1 -12:34:56.78 >>> Re-enter generator gen in File "/path/to_file.py", line 48 -12:34:56.78 ...................... i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Exit with block in gen \ No newline at end of file diff --git a/tests/sample_results/3.4/with_no_args.txt b/tests/sample_results/3.4/with_no_args.txt deleted file mode 100644 index 50fc281..0000000 --- a/tests/sample_results/3.4/with_no_args.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 6 -12:34:56.78 .......... x = 1 -12:34:56.78 7 | result = 2 + 2 -12:34:56.78 .............. result = 4 -12:34:56.78 <<< Exit with block in main -12:34:56.78 LOG: -12:34:56.78 .... = 1 \ No newline at end of file diff --git a/tests/sample_results/3.5/all_columns.txt b/tests/sample_results/3.5/all_columns.txt deleted file mode 100644 index ad3717c..0000000 --- a/tests/sample_results/3.5/all_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo >>> Call to main..foo in File "/path/to_file.py", line 8 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 8 | def foo(): -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 9 | x = 1 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 10 | y = x + 2 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo .............. y = 3 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo <<< Return value from main..foo: None \ No newline at end of file diff --git a/tests/sample_results/3.5/color.txt b/tests/sample_results/3.5/color.txt deleted file mode 100644 index 0deb4a9..0000000 --- a/tests/sample_results/3.5/color.txt +++ /dev/null @@ -1,51 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  18 | or foo)() -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  23 | x + y -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) - 12:34:56.78 List comprehension: - 12:34:56.78  23 | x + y - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.5/comprehensions.txt b/tests/sample_results/3.5/comprehensions.txt deleted file mode 100644 index 8f061aa..0000000 --- a/tests/sample_results/3.5/comprehensions.txt +++ /dev/null @@ -1,95 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 -12:34:56.78 16 | def main(): -12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ...} -12:34:56.78 17 | str({x for x in list(range(100))}) -12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, ...} -12:34:56.78 18 | str({x: x for x in list(range(100))}) -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {0, 1, 2} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 1 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {1, 2, 3} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 2 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {2, 3, 4} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0, 1, 2 - 12:34:56.78 Result: {0: {0, 1, 2}, 1: {1, 2, 3}, 2: {2, 3, 4}} -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 1 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 1 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 2 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 4 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {1, 4} -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) -12:34:56.78 22 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 - 12:34:56.78 11 | def bar(): - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 <<< Return value from bar: None -12:34:56.78 22 | bar() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.5/confusing_decorator_lines.txt b/tests/sample_results/3.5/confusing_decorator_lines.txt deleted file mode 100644 index 914fd36..0000000 --- a/tests/sample_results/3.5/confusing_decorator_lines.txt +++ /dev/null @@ -1,4 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | str(3) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.5/enabled2.txt b/tests/sample_results/3.5/enabled2.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/sample_results/3.5/end_finally.txt b/tests/sample_results/3.5/end_finally.txt deleted file mode 100644 index afb39f2..0000000 --- a/tests/sample_results/3.5/end_finally.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 0 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 9 | return -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from foo: None -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 1 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 8 | raise TypeError('bad') -12:34:56.78 !!! TypeError: bad -12:34:56.78 11 | pass -12:34:56.78 ??? Call either returned None or ended by exception \ No newline at end of file diff --git a/tests/sample_results/3.5/generator.txt b/tests/sample_results/3.5/generator.txt deleted file mode 100644 index 542d83d..0000000 --- a/tests/sample_results/3.5/generator.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Start generator f in File "/path/to_file.py", line 12 -12:34:56.78 ...... x1 = 0 -12:34:56.78 12 | def f(x1): -12:34:56.78 13 | assert not original_tracer_active() -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 <<< Yield value from f: 0 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 14 -12:34:56.78 .......... x1 = 0 -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 15 | assert not original_tracer_active() -12:34:56.78 16 | _x3 = 'foo' -12:34:56.78 17 | assert not original_tracer_active() -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 <<< Yield value from f: 2 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 18 -12:34:56.78 .......... x1 = 0 -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 .......... _x3 = 'foo' -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 .......... _x4 = 'looloo' -12:34:56.78 19 | assert not original_tracer_active() -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/3.5/generator_expression.txt b/tests/sample_results/3.5/generator_expression.txt deleted file mode 100644 index 8c4fa77..0000000 --- a/tests/sample_results/3.5/generator_expression.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 >>> Start generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 1 - 12:34:56.78 <<< Yield value from : 2 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Yield value from : 4 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Return value from : None -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) -12:34:56.78 <<< Return value from main: [2, 4] \ No newline at end of file diff --git a/tests/sample_results/3.5/indentation.txt b/tests/sample_results/3.5/indentation.txt deleted file mode 100644 index 401816e..0000000 --- a/tests/sample_results/3.5/indentation.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | f2() - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 9 - 12:34:56.78 9 | def f2(): - 12:34:56.78 10 | f3() - 12:34:56.78 >>> Call to f4 in File "/path/to_file.py", line 18 - 12:34:56.78 18 | def f4(): - 12:34:56.78 19 | f5() - 12:34:56.78 >>> Call to f5 in File "/path/to_file.py", line 22 - 12:34:56.78 22 | def f5(): - 12:34:56.78 23 | pass - 12:34:56.78 <<< Return value from f5: None - 12:34:56.78 19 | f5() - 12:34:56.78 <<< Return value from f4: None - 12:34:56.78 10 | f3() - 12:34:56.78 <<< Return value from f2: None -12:34:56.78 6 | f2() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.5/install_enabled.txt b/tests/sample_results/3.5/install_enabled.txt deleted file mode 100644 index 4243932..0000000 --- a/tests/sample_results/3.5/install_enabled.txt +++ /dev/null @@ -1,10 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 1 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 2 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 3 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 6 \ No newline at end of file diff --git a/tests/sample_results/3.5/lambda_function.txt b/tests/sample_results/3.5/lambda_function.txt deleted file mode 100644 index 32f216c..0000000 --- a/tests/sample_results/3.5/lambda_function.txt +++ /dev/null @@ -1,5 +0,0 @@ -12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 5 -12:34:56.78 .......... x = 3 -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 <<< Return value from main..: 9 \ No newline at end of file diff --git a/tests/sample_results/3.5/long_variable.txt b/tests/sample_results/3.5/long_variable.txt deleted file mode 100644 index 7514952..0000000 --- a/tests/sample_results/3.5/long_variable.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | foo = list(range(1000)) -12:34:56.78 .......... foo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(foo) = 1000 -12:34:56.78 7 | return foo -12:34:56.78 <<< Return value from main: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] \ No newline at end of file diff --git a/tests/sample_results/3.5/method_and_prefix.txt b/tests/sample_results/3.5/method_and_prefix.txt deleted file mode 100644 index f640c90..0000000 --- a/tests/sample_results/3.5/method_and_prefix.txt +++ /dev/null @@ -1,9 +0,0 @@ -ZZZ 12:34:56.78 >>> Call to Baz.square in File "/path/to_file.py", line 11 -ZZZ 12:34:56.78 .......... self = -ZZZ 12:34:56.78 .......... self.x = 2 -ZZZ 12:34:56.78 11 | def square(self): -ZZZ 12:34:56.78 12 | foo = 7 -ZZZ 12:34:56.78 13 | self.x **= 2 -ZZZ 12:34:56.78 .............. self.x = 4 -ZZZ 12:34:56.78 14 | return self -ZZZ 12:34:56.78 <<< Return value from Baz.square: \ No newline at end of file diff --git a/tests/sample_results/3.5/multiline.txt b/tests/sample_results/3.5/multiline.txt deleted file mode 100644 index 020f741..0000000 --- a/tests/sample_results/3.5/multiline.txt +++ /dev/null @@ -1,48 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = ( -12:34:56.78 7 | [ -12:34:56.78 8 | bar(), # 1 -12:34:56.78 9 | bar(), # 2 -12:34:56.78 .......... x = [None, None] -12:34:56.78 .......... len(x) = 2 -12:34:56.78 13 | with context( -12:34:56.78 14 | bar(), # 1 -12:34:56.78 15 | bar(), # 2 -12:34:56.78 17 | try: -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 .................. _ = None -12:34:56.78 24 | while bar( -12:34:56.78 25 | bar(), # 1 -12:34:56.78 26 | bar(), # 2 -12:34:56.78 30 | bar() -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 32 | bar() -12:34:56.78 33 | raise ValueError -12:34:56.78 !!! ValueError -12:34:56.78 34 | except ( -12:34:56.78 35 | ValueError, -12:34:56.78 36 | TypeError, -12:34:56.78 38 | pass -12:34:56.78 40 | bar( -12:34:56.78 42 | bar(), # 1 -12:34:56.78 43 | bar(), # 2 -12:34:56.78 47 | with context( -12:34:56.78 48 | bar(), # 1 -12:34:56.78 49 | bar(), # 2 -12:34:56.78 51 | if bar( -12:34:56.78 52 | bar(), # 1 -12:34:56.78 53 | bar(), # 2 -12:34:56.78 56 | elif [ -12:34:56.78 57 | bar( -12:34:56.78 58 | bar(), # 1 -12:34:56.78 59 | bar(), # 2 -12:34:56.78 62 | pass -12:34:56.78 64 | return x -12:34:56.78 <<< Return value from main: [None, None] \ No newline at end of file diff --git a/tests/sample_results/3.5/no_columns.txt b/tests/sample_results/3.5/no_columns.txt deleted file mode 100644 index 4cc92cd..0000000 --- a/tests/sample_results/3.5/no_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ ->>> Call to main in File "/path/to_file.py", line 7 - 7 | def main(): - 8 | x = 1 - 9 | y = x + 2 - .......... y = 3 - <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.5/pp_custom_pformat.txt b/tests/sample_results/3.5/pp_custom_pformat.txt deleted file mode 100644 index adf5470..0000000 --- a/tests/sample_results/3.5/pp_custom_pformat.txt +++ /dev/null @@ -1,69 +0,0 @@ -Test with custom pformat -12:34:56.78 LOG: -12:34:56.78 .... x = custom(1) -12:34:56.78 LOG: -12:34:56.78 .... pp(x) + y = custom(3) -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ............ y = 2 -12:34:56.78 ........ x + y = 3 -12:34:56.78 ........ y = 2 -12:34:56.78 .... (x + y) + y = custom(5) -12:34:56.78 >>> Enter with block in test_misc in File "/path/to_file.py", line 11 -12:34:56.78 .......... x = 1 -12:34:56.78 .......... y = 2 -12:34:56.78 12 | y = 3 # custom pformat is not used here -12:34:56.78 .............. y = 3 -12:34:56.78 <<< Exit with block in test_misc -12:34:56.78 LOG: -12:34:56.78 .... d = custom(['a long key to be pretty printed prettily', ['prettyprinter prints datetime with keyword arguments:', datetime.datetime(1970, 1, 1, 0, 0, 42)]]) - -Test without prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = ['a long key to be pretty printed prettily', -12:34:56.78 ['prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42)]] - -Test with prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime( -12:34:56.78 year=1970, -12:34:56.78 month=1, -12:34:56.78 day=1, -12:34:56.78 hour=0, -12:34:56.78 minute=0, -12:34:56.78 second=42 -12:34:56.78 ) -12:34:56.78 ] -12:34:56.78 ] - -Test without prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42), -12:34:56.78 ], -12:34:56.78 ] - -Test with prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime( -12:34:56.78 year=1970, -12:34:56.78 month=1, -12:34:56.78 day=1, -12:34:56.78 hour=0, -12:34:56.78 minute=0, -12:34:56.78 second=42 -12:34:56.78 ) -12:34:56.78 ] -12:34:56.78 ] \ No newline at end of file diff --git a/tests/sample_results/3.5/recursion.txt b/tests/sample_results/3.5/recursion.txt deleted file mode 100644 index 05e77db..0000000 --- a/tests/sample_results/3.5/recursion.txt +++ /dev/null @@ -1,45 +0,0 @@ -12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 4 -12:34:56.78 5 | def factorial(x): -12:34:56.78 6 | if x <= 1: -12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 3 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 2 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 1 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 7 | return 1 - 12:34:56.78 <<< Return value from factorial: 1 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 2 - 12:34:56.78 ...... b = 1 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 2 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 2 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 3 - 12:34:56.78 ...... b = 2 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 6 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 6 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 4 - 12:34:56.78 ...... b = 6 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 24 -12:34:56.78 8 | return mul(x, factorial(x - 1)) -12:34:56.78 <<< Return value from factorial: 24 \ No newline at end of file diff --git a/tests/sample_results/3.5/threads.txt b/tests/sample_results/3.5/threads.txt deleted file mode 100644 index 496e974..0000000 --- a/tests/sample_results/3.5/threads.txt +++ /dev/null @@ -1,12 +0,0 @@ -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 -longername >>> Call to foo in File "/path/to_file.py", line 9 -longername 9 | def foo(): -longername 10 | return 1 -longername <<< Return value from foo: 1 -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 \ No newline at end of file diff --git a/tests/sample_results/3.5/unavailable_source.txt b/tests/sample_results/3.5/unavailable_source.txt deleted file mode 100644 index af9a4d2..0000000 --- a/tests/sample_results/3.5/unavailable_source.txt +++ /dev/null @@ -1,8 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78 4 | SOURCE IS UNAVAILABLE -12:34:56.78 5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/3.5/var_order.txt b/tests/sample_results/3.5/var_order.txt deleted file mode 100644 index f23ca83..0000000 --- a/tests/sample_results/3.5/var_order.txt +++ /dev/null @@ -1,14 +0,0 @@ -12:34:56.78 >>> Call to f in File "/path/to_file.py", line 5 -12:34:56.78 ...... _one = 1 -12:34:56.78 ...... _two = 2 -12:34:56.78 ...... _three = 3 -12:34:56.78 ...... _four = 4 -12:34:56.78 5 | def f(_one, _two, _three, _four): -12:34:56.78 6 | _five = None -12:34:56.78 7 | _six = None -12:34:56.78 8 | _seven = None -12:34:56.78 10 | _five, _six, _seven = 5, 6, 7 -12:34:56.78 .......... _five = 5 -12:34:56.78 .......... _six = 6 -12:34:56.78 .......... _seven = 7 -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/3.5/variables_classes.txt b/tests/sample_results/3.5/variables_classes.txt deleted file mode 100644 index d7ad679..0000000 --- a/tests/sample_results/3.5/variables_classes.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 22 | _s = WithSlots() -12:34:56.78 .......... _s = -12:34:56.78 .......... _s.x = 3 -12:34:56.78 .......... _s.y = 4 -12:34:56.78 23 | _lst = list(range(1000)) -12:34:56.78 .......... _lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(_lst) = 1000 -12:34:56.78 .......... _lst[997] = 997 -12:34:56.78 .......... _lst[998] = 998 -12:34:56.78 .......... _lst[999] = 999 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.5/watch.txt b/tests/sample_results/3.5/watch.txt deleted file mode 100644 index 1c3a9f0..0000000 --- a/tests/sample_results/3.5/watch.txt +++ /dev/null @@ -1,18 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 17 -12:34:56.78 17 | def main(): -12:34:56.78 18 | foo = Foo() -12:34:56.78 .......... foo = -12:34:56.78 .......... foo.x = 2 -12:34:56.78 .......... len(foo.__dict__["x"] * "abc") = 6 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 0 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 4 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 12 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 1 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 16 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 48 -12:34:56.78 19 | for i in range(2): -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.5/watch_extras.txt b/tests/sample_results/3.5/watch_extras.txt deleted file mode 100644 index 67711cf..0000000 --- a/tests/sample_results/3.5/watch_extras.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... len(y) = 1 -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] \ No newline at end of file diff --git a/tests/sample_results/3.5/with_block_depth.txt b/tests/sample_results/3.5/with_block_depth.txt deleted file mode 100644 index 7063835..0000000 --- a/tests/sample_results/3.5/with_block_depth.txt +++ /dev/null @@ -1,20 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 21 -12:34:56.78 22 | result1 = f2(5) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 5 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 5 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 .......... result3 = 10 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 10 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 10 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 10 -12:34:56.78 22 | result1 = f2(5) -12:34:56.78 .............. result1 = 10 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/3.5/with_no_args.txt b/tests/sample_results/3.5/with_no_args.txt deleted file mode 100644 index 12f7483..0000000 --- a/tests/sample_results/3.5/with_no_args.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 6 -12:34:56.78 .......... x = 1 -12:34:56.78 7 | result = 2 + 2 -12:34:56.78 .............. result = 4 -12:34:56.78 <<< Exit with block in main -12:34:56.78 LOG: -12:34:56.78 .... x = 1 \ No newline at end of file diff --git a/tests/sample_results/3.6/all_columns.txt b/tests/sample_results/3.6/all_columns.txt deleted file mode 100644 index ad3717c..0000000 --- a/tests/sample_results/3.6/all_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo >>> Call to main..foo in File "/path/to_file.py", line 8 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 8 | def foo(): -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 9 | x = 1 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 10 | y = x + 2 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo .............. y = 3 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo <<< Return value from main..foo: None \ No newline at end of file diff --git a/tests/sample_results/3.6/cellvars.txt b/tests/sample_results/3.6/cellvars.txt deleted file mode 100644 index b0519ec..0000000 --- a/tests/sample_results/3.6/cellvars.txt +++ /dev/null @@ -1,30 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 16 -12:34:56.78 17 | result1 = f2(42) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 1 - 12:34:56.78 ...... a = 42 - 12:34:56.78 1 | def f2(a): - 12:34:56.78 2 | def f3(a): - 12:34:56.78 12 | return f3(a) - 12:34:56.78 >>> Call to f2..f3 in File "/path/to_file.py", line 2 - 12:34:56.78 .......... a = 42 - 12:34:56.78 2 | def f3(a): - 12:34:56.78 3 | x = 0 - 12:34:56.78 4 | x += 1 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 10 | return f4(a) - 12:34:56.78 >>> Call to f2..f3..f4 in File "/path/to_file.py", line 6 - 12:34:56.78 .............. _a = 42 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 7 | _y = x - 12:34:56.78 .................. _y = 1 - 12:34:56.78 8 | return 42 - 12:34:56.78 <<< Return value from f2..f3..f4: 42 - 12:34:56.78 10 | return f4(a) - 12:34:56.78 <<< Return value from f2..f3: 42 - 12:34:56.78 12 | return f3(a) - 12:34:56.78 <<< Return value from f2: 42 -12:34:56.78 17 | result1 = f2(42) -12:34:56.78 .............. result1 = 42 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/3.6/color.txt b/tests/sample_results/3.6/color.txt deleted file mode 100644 index 0deb4a9..0000000 --- a/tests/sample_results/3.6/color.txt +++ /dev/null @@ -1,51 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  18 | or foo)() -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  23 | x + y -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) - 12:34:56.78 List comprehension: - 12:34:56.78  23 | x + y - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/comprehensions.txt b/tests/sample_results/3.6/comprehensions.txt deleted file mode 100644 index 8f061aa..0000000 --- a/tests/sample_results/3.6/comprehensions.txt +++ /dev/null @@ -1,95 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 -12:34:56.78 16 | def main(): -12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ...} -12:34:56.78 17 | str({x for x in list(range(100))}) -12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, ...} -12:34:56.78 18 | str({x: x for x in list(range(100))}) -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {0, 1, 2} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 1 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {1, 2, 3} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 2 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {2, 3, 4} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0, 1, 2 - 12:34:56.78 Result: {0: {0, 1, 2}, 1: {1, 2, 3}, 2: {2, 3, 4}} -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 1 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 1 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 2 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 4 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {1, 4} -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) -12:34:56.78 22 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 - 12:34:56.78 11 | def bar(): - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 <<< Return value from bar: None -12:34:56.78 22 | bar() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/confusing_decorator_lines.txt b/tests/sample_results/3.6/confusing_decorator_lines.txt deleted file mode 100644 index 914fd36..0000000 --- a/tests/sample_results/3.6/confusing_decorator_lines.txt +++ /dev/null @@ -1,4 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | str(3) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/depth.txt b/tests/sample_results/3.6/depth.txt deleted file mode 100644 index 9260538..0000000 --- a/tests/sample_results/3.6/depth.txt +++ /dev/null @@ -1,24 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | result1 = f2(8) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 8 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 8 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 LOG: - 12:34:56.78 .... x4 * 2 = 16 - 12:34:56.78 .......... result3 = 16 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 16 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 16 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 16 -12:34:56.78 21 | result1 = f2(8) -12:34:56.78 .......... result1 = 16 -12:34:56.78 22 | return result1 -12:34:56.78 <<< Return value from main: 16 \ No newline at end of file diff --git a/tests/sample_results/3.6/django_sample.txt b/tests/sample_results/3.6/django_sample.txt deleted file mode 100644 index 22f50d0..0000000 --- a/tests/sample_results/3.6/django_sample.txt +++ /dev/null @@ -1,13 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.fake_django_settings' -12:34:56.78 7 | import django -12:34:56.78 .......... django = -12:34:56.78 9 | django.setup() -12:34:56.78 10 | from django.contrib.contenttypes.models import ContentType -12:34:56.78 .......... ContentType = -12:34:56.78 11 | queryset = ContentType.objects.all() -12:34:56.78 .......... queryset = -12:34:56.78 12 | lst = [1, 2, 3] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/enabled.txt b/tests/sample_results/3.6/enabled.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/sample_results/3.6/enabled2.txt b/tests/sample_results/3.6/enabled2.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/sample_results/3.6/end_finally.txt b/tests/sample_results/3.6/end_finally.txt deleted file mode 100644 index afb39f2..0000000 --- a/tests/sample_results/3.6/end_finally.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 0 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 9 | return -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from foo: None -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 1 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 8 | raise TypeError('bad') -12:34:56.78 !!! TypeError: bad -12:34:56.78 11 | pass -12:34:56.78 ??? Call either returned None or ended by exception \ No newline at end of file diff --git a/tests/sample_results/3.6/exception.txt b/tests/sample_results/3.6/exception.txt deleted file mode 100644 index bbc62ec..0000000 --- a/tests/sample_results/3.6/exception.txt +++ /dev/null @@ -1,78 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 19 -12:34:56.78 19 | def main(): -12:34:56.78 20 | try: -12:34:56.78 21 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 10 - 12:34:56.78 ...... _ = () - 12:34:56.78 10 | def bar(*_): - 12:34:56.78 11 | try: - 12:34:56.78 12 | str(foo()) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 - 12:34:56.78 4 | def foo(): - 12:34:56.78 5 | raise TypeError(''' - 12:34:56.78 7 | bad''') - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! Call ended by exception - 12:34:56.78 12 | str(foo()) - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! When calling: foo() - 12:34:56.78 13 | except Exception: - 12:34:56.78 14 | str(1) - 12:34:56.78 15 | raise - 12:34:56.78 !!! Call ended by exception -12:34:56.78 21 | bar() -12:34:56.78 !!! TypeError: -12:34:56.78 !!! very -12:34:56.78 !!! bad -12:34:56.78 !!! When calling: bar() -12:34:56.78 22 | except: -12:34:56.78 23 | pass -12:34:56.78 25 | try: -12:34:56.78 26 | bob( -12:34:56.78 27 | 1, -12:34:56.78 28 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: bob( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 30 | except: -12:34:56.78 31 | pass -12:34:56.78 33 | try: -12:34:56.78 34 | (None -12:34:56.78 35 | or bob)( -12:34:56.78 36 | 1, -12:34:56.78 37 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: (None -12:34:56.78 or bob)( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 39 | except: -12:34:56.78 40 | pass -12:34:56.78 42 | x = [[[2]]] -12:34:56.78 .......... len(x) = 1 -12:34:56.78 44 | try: -12:34:56.78 45 | str(x[1][0][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[1] -12:34:56.78 46 | except: -12:34:56.78 47 | pass -12:34:56.78 49 | try: -12:34:56.78 50 | str(x[0][1][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][1] -12:34:56.78 51 | except: -12:34:56.78 52 | pass -12:34:56.78 54 | try: -12:34:56.78 55 | str(x[0][0][1]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][0][1] -12:34:56.78 56 | except: -12:34:56.78 57 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/generator.txt b/tests/sample_results/3.6/generator.txt deleted file mode 100644 index 542d83d..0000000 --- a/tests/sample_results/3.6/generator.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Start generator f in File "/path/to_file.py", line 12 -12:34:56.78 ...... x1 = 0 -12:34:56.78 12 | def f(x1): -12:34:56.78 13 | assert not original_tracer_active() -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 <<< Yield value from f: 0 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 14 -12:34:56.78 .......... x1 = 0 -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 15 | assert not original_tracer_active() -12:34:56.78 16 | _x3 = 'foo' -12:34:56.78 17 | assert not original_tracer_active() -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 <<< Yield value from f: 2 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 18 -12:34:56.78 .......... x1 = 0 -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 .......... _x3 = 'foo' -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 .......... _x4 = 'looloo' -12:34:56.78 19 | assert not original_tracer_active() -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/3.6/generator_expression.txt b/tests/sample_results/3.6/generator_expression.txt deleted file mode 100644 index 8c4fa77..0000000 --- a/tests/sample_results/3.6/generator_expression.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 >>> Start generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 1 - 12:34:56.78 <<< Yield value from : 2 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Yield value from : 4 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Return value from : None -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) -12:34:56.78 <<< Return value from main: [2, 4] \ No newline at end of file diff --git a/tests/sample_results/3.6/indentation.txt b/tests/sample_results/3.6/indentation.txt deleted file mode 100644 index 401816e..0000000 --- a/tests/sample_results/3.6/indentation.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | f2() - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 9 - 12:34:56.78 9 | def f2(): - 12:34:56.78 10 | f3() - 12:34:56.78 >>> Call to f4 in File "/path/to_file.py", line 18 - 12:34:56.78 18 | def f4(): - 12:34:56.78 19 | f5() - 12:34:56.78 >>> Call to f5 in File "/path/to_file.py", line 22 - 12:34:56.78 22 | def f5(): - 12:34:56.78 23 | pass - 12:34:56.78 <<< Return value from f5: None - 12:34:56.78 19 | f5() - 12:34:56.78 <<< Return value from f4: None - 12:34:56.78 10 | f3() - 12:34:56.78 <<< Return value from f2: None -12:34:56.78 6 | f2() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/install_enabled.txt b/tests/sample_results/3.6/install_enabled.txt deleted file mode 100644 index 4243932..0000000 --- a/tests/sample_results/3.6/install_enabled.txt +++ /dev/null @@ -1,10 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 1 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 2 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 3 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 6 \ No newline at end of file diff --git a/tests/sample_results/3.6/lambda_function.txt b/tests/sample_results/3.6/lambda_function.txt deleted file mode 100644 index 32f216c..0000000 --- a/tests/sample_results/3.6/lambda_function.txt +++ /dev/null @@ -1,5 +0,0 @@ -12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 5 -12:34:56.78 .......... x = 3 -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 <<< Return value from main..: 9 \ No newline at end of file diff --git a/tests/sample_results/3.6/long_variable.txt b/tests/sample_results/3.6/long_variable.txt deleted file mode 100644 index 7514952..0000000 --- a/tests/sample_results/3.6/long_variable.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | foo = list(range(1000)) -12:34:56.78 .......... foo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(foo) = 1000 -12:34:56.78 7 | return foo -12:34:56.78 <<< Return value from main: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] \ No newline at end of file diff --git a/tests/sample_results/3.6/method_and_prefix.txt b/tests/sample_results/3.6/method_and_prefix.txt deleted file mode 100644 index f640c90..0000000 --- a/tests/sample_results/3.6/method_and_prefix.txt +++ /dev/null @@ -1,9 +0,0 @@ -ZZZ 12:34:56.78 >>> Call to Baz.square in File "/path/to_file.py", line 11 -ZZZ 12:34:56.78 .......... self = -ZZZ 12:34:56.78 .......... self.x = 2 -ZZZ 12:34:56.78 11 | def square(self): -ZZZ 12:34:56.78 12 | foo = 7 -ZZZ 12:34:56.78 13 | self.x **= 2 -ZZZ 12:34:56.78 .............. self.x = 4 -ZZZ 12:34:56.78 14 | return self -ZZZ 12:34:56.78 <<< Return value from Baz.square: \ No newline at end of file diff --git a/tests/sample_results/3.6/multiline.txt b/tests/sample_results/3.6/multiline.txt deleted file mode 100644 index 020f741..0000000 --- a/tests/sample_results/3.6/multiline.txt +++ /dev/null @@ -1,48 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = ( -12:34:56.78 7 | [ -12:34:56.78 8 | bar(), # 1 -12:34:56.78 9 | bar(), # 2 -12:34:56.78 .......... x = [None, None] -12:34:56.78 .......... len(x) = 2 -12:34:56.78 13 | with context( -12:34:56.78 14 | bar(), # 1 -12:34:56.78 15 | bar(), # 2 -12:34:56.78 17 | try: -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 .................. _ = None -12:34:56.78 24 | while bar( -12:34:56.78 25 | bar(), # 1 -12:34:56.78 26 | bar(), # 2 -12:34:56.78 30 | bar() -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 32 | bar() -12:34:56.78 33 | raise ValueError -12:34:56.78 !!! ValueError -12:34:56.78 34 | except ( -12:34:56.78 35 | ValueError, -12:34:56.78 36 | TypeError, -12:34:56.78 38 | pass -12:34:56.78 40 | bar( -12:34:56.78 42 | bar(), # 1 -12:34:56.78 43 | bar(), # 2 -12:34:56.78 47 | with context( -12:34:56.78 48 | bar(), # 1 -12:34:56.78 49 | bar(), # 2 -12:34:56.78 51 | if bar( -12:34:56.78 52 | bar(), # 1 -12:34:56.78 53 | bar(), # 2 -12:34:56.78 56 | elif [ -12:34:56.78 57 | bar( -12:34:56.78 58 | bar(), # 1 -12:34:56.78 59 | bar(), # 2 -12:34:56.78 62 | pass -12:34:56.78 64 | return x -12:34:56.78 <<< Return value from main: [None, None] \ No newline at end of file diff --git a/tests/sample_results/3.6/no_columns.txt b/tests/sample_results/3.6/no_columns.txt deleted file mode 100644 index 4cc92cd..0000000 --- a/tests/sample_results/3.6/no_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ ->>> Call to main in File "/path/to_file.py", line 7 - 7 | def main(): - 8 | x = 1 - 9 | y = x + 2 - .......... y = 3 - <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/pandas_sample.txt b/tests/sample_results/3.6/pandas_sample.txt deleted file mode 100644 index 5384cb5..0000000 --- a/tests/sample_results/3.6/pandas_sample.txt +++ /dev/null @@ -1,35 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 7 -12:34:56.78 7 | def main(): -12:34:56.78 8 | arr = np.arange(10000) -12:34:56.78 .......... arr = array([ 0, 1, 2, ..., 9997, 9998, 9999]) -12:34:56.78 .......... arr.shape = (10000,) -12:34:56.78 .......... arr.dtype = dtype('int64') -12:34:56.78 9 | arr = arr.reshape((100, 100)) -12:34:56.78 .......... arr = array([[ 0, 1, 2, ..., 97, 98, 99], -12:34:56.78 [ 100, 101, 102, ..., 197, 198, 199], -12:34:56.78 [ 200, 201, 202, ..., 297, 298, 299], -12:34:56.78 ..., -12:34:56.78 [9700, 9701, 9702, ..., 9797, 9798, 9799], -12:34:56.78 [9800, 9801, 9802, ..., 9897, 9898, 9899], -12:34:56.78 [9900, 9901, 9902, ..., 9997, 9998, 9999]]) -12:34:56.78 .......... arr.shape = (100, 100) -12:34:56.78 10 | df = pd.DataFrame(arr) -12:34:56.78 .......... df = 0 1 2 3 ... 96 97 98 99 -12:34:56.78 0 0 1 2 3 ... 96 97 98 99 -12:34:56.78 1 100 101 102 103 ... 196 197 198 199 -12:34:56.78 2 200 201 202 203 ... 296 297 298 299 -12:34:56.78 3 300 301 302 303 ... 396 397 398 399 -12:34:56.78 .. ... ... ... ... ... ... ... ... ... -12:34:56.78 96 9600 9601 9602 9603 ... 9696 9697 9698 9699 -12:34:56.78 97 9700 9701 9702 9703 ... 9796 9797 9798 9799 -12:34:56.78 98 9800 9801 9802 9803 ... 9896 9897 9898 9899 -12:34:56.78 99 9900 9901 9902 9903 ... 9996 9997 9998 9999 -12:34:56.78 -12:34:56.78 [100 rows x 100 columns] -12:34:56.78 .......... df.shape = (100, 100) -12:34:56.78 11 | series = df[0] -12:34:56.78 .......... series = 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 -12:34:56.78 .......... series.shape = (100,) -12:34:56.78 .......... series.dtype = dtype('int64') -12:34:56.78 12 | return series -12:34:56.78 <<< Return value from main: 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 \ No newline at end of file diff --git a/tests/sample_results/3.6/pp.txt b/tests/sample_results/3.6/pp.txt deleted file mode 100644 index e79df44..0000000 --- a/tests/sample_results/3.6/pp.txt +++ /dev/null @@ -1,151 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | pp(pp(x + 1) + max(*pp(y + 2, y + 3))) -12:34:56.78 LOG: -12:34:56.78 .... x + 1 = 2 -12:34:56.78 LOG: -12:34:56.78 .... y + 2 = 4 -12:34:56.78 .... y + 3 = 5 -12:34:56.78 LOG: -12:34:56.78 .... pp(x + 1) + max(*pp(y + 2, y + 3)) = 7 -12:34:56.78 9 | assert pp.deep(lambda: x + 1 + max(y + 2, y + 3)) == 7 -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ........ x + 1 = 2 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ max(y + 2, y + 3) = 5 -12:34:56.78 .... x + 1 + max(y + 2, y + 3) = 7 -12:34:56.78 10 | lst = list(range(30)) -12:34:56.78 .......... lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ..., 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .......... len(lst) = 30 -12:34:56.78 11 | pp.deep(lambda: list( -12:34:56.78 LOG: -12:34:56.78 ............ list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] = at 0xABC> -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 4 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [4, 5] -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 6 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [5, 6] -12:34:56.78 ........ list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) = [[4, 5], [5, 6]] -12:34:56.78 ........ lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .... list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) + lst = [[4, 5], -12:34:56.78 [5, 6], -12:34:56.78 0, -12:34:56.78 1, -12:34:56.78 2, -12:34:56.78 3, -12:34:56.78 4, -12:34:56.78 5, -12:34:56.78 6, -12:34:56.78 7, -12:34:56.78 8, -12:34:56.78 9, -12:34:56.78 10, -12:34:56.78 11, -12:34:56.78 12, -12:34:56.78 13, -12:34:56.78 14, -12:34:56.78 15, -12:34:56.78 16, -12:34:56.78 17, -12:34:56.78 18, -12:34:56.78 19, -12:34:56.78 20, -12:34:56.78 21, -12:34:56.78 22, -12:34:56.78 23, -12:34:56.78 24, -12:34:56.78 25, -12:34:56.78 26, -12:34:56.78 27, -12:34:56.78 28, -12:34:56.78 29] -12:34:56.78 15 | pp(dict.fromkeys(range(30), 4)) -12:34:56.78 LOG: -12:34:56.78 .... dict.fromkeys(range(30), 4) = {0: 4, -12:34:56.78 1: 4, -12:34:56.78 2: 4, -12:34:56.78 3: 4, -12:34:56.78 4: 4, -12:34:56.78 5: 4, -12:34:56.78 6: 4, -12:34:56.78 7: 4, -12:34:56.78 8: 4, -12:34:56.78 9: 4, -12:34:56.78 10: 4, -12:34:56.78 11: 4, -12:34:56.78 12: 4, -12:34:56.78 13: 4, -12:34:56.78 14: 4, -12:34:56.78 15: 4, -12:34:56.78 16: 4, -12:34:56.78 17: 4, -12:34:56.78 18: 4, -12:34:56.78 19: 4, -12:34:56.78 20: 4, -12:34:56.78 21: 4, -12:34:56.78 22: 4, -12:34:56.78 23: 4, -12:34:56.78 24: 4, -12:34:56.78 25: 4, -12:34:56.78 26: 4, -12:34:56.78 27: 4, -12:34:56.78 28: 4, -12:34:56.78 29: 4} -12:34:56.78 16 | pp.deep(lambda: BadRepr() and 1) -12:34:56.78 LOG: -12:34:56.78 ............ BadRepr = -12:34:56.78 ........ BadRepr() = -12:34:56.78 .... BadRepr() and 1 = 1 -12:34:56.78 17 | pp.deep(lambda: 1 / 2) -12:34:56.78 LOG: -12:34:56.78 .... 1 / 2 = 0.5 -12:34:56.78 19 | try: -12:34:56.78 20 | pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 LOG: -12:34:56.78 ............ y = 2 -12:34:56.78 ........ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ (y + 3) / 0 = !!! ZeroDivisionError! -12:34:56.78 !!! ZeroDivisionError: division by zero -12:34:56.78 !!! When calling: pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 21 | except ZeroDivisionError: -12:34:56.78 22 | pass -12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) -12:34:56.78 LOG: -12:34:56.78 ........ caller = -12:34:56.78 ........ lambda: 2 * 3 = at 0xABC> -12:34:56.78 ............ 2 * 3 = 6 -12:34:56.78 .... caller(lambda: 2 * 3) = at 0xABC> -12:34:56.78 .......... f = at 0xABC> -12:34:56.78 27 | f() - 12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 26 - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 <<< Return value from main..: 6 -12:34:56.78 27 | f() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/recursion.txt b/tests/sample_results/3.6/recursion.txt deleted file mode 100644 index 05e77db..0000000 --- a/tests/sample_results/3.6/recursion.txt +++ /dev/null @@ -1,45 +0,0 @@ -12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 4 -12:34:56.78 5 | def factorial(x): -12:34:56.78 6 | if x <= 1: -12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 3 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 2 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 1 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 7 | return 1 - 12:34:56.78 <<< Return value from factorial: 1 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 2 - 12:34:56.78 ...... b = 1 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 2 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 2 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 3 - 12:34:56.78 ...... b = 2 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 6 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 6 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 4 - 12:34:56.78 ...... b = 6 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 24 -12:34:56.78 8 | return mul(x, factorial(x - 1)) -12:34:56.78 <<< Return value from factorial: 24 \ No newline at end of file diff --git a/tests/sample_results/3.6/spy.txt b/tests/sample_results/3.6/spy.txt deleted file mode 100644 index d1a3204..0000000 --- a/tests/sample_results/3.6/spy.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 6 -12:34:56.78 6 | def foo(): -12:34:56.78 7 | x = pp.deep(lambda: 1 + 2) -12:34:56.78 LOG: -12:34:56.78 .... = 3 -12:34:56.78 .......... x = 3 -12:34:56.78 8 | y = pp(3 + 4, 5 + 6)[0] -12:34:56.78 LOG: -12:34:56.78 .... = 7 -12:34:56.78 .... = 11 -12:34:56.78 .......... y = 7 -12:34:56.78 9 | return x + y -12:34:56.78 <<< Return value from foo: 10 -12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 14 -12:34:56.78 14 | def bar(): -12:34:56.78 15 | result = pp(4 + 6, 7 + 8) -12:34:56.78 LOG: -12:34:56.78 .... = 10 -12:34:56.78 .... = 15 -12:34:56.78 .......... result = (10, 15) -12:34:56.78 .......... len(result) = 2 -12:34:56.78 16 | return result[0] -12:34:56.78 <<< Return value from bar: 10 \ No newline at end of file diff --git a/tests/sample_results/3.6/threads.txt b/tests/sample_results/3.6/threads.txt deleted file mode 100644 index 496e974..0000000 --- a/tests/sample_results/3.6/threads.txt +++ /dev/null @@ -1,12 +0,0 @@ -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 -longername >>> Call to foo in File "/path/to_file.py", line 9 -longername 9 | def foo(): -longername 10 | return 1 -longername <<< Return value from foo: 1 -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 \ No newline at end of file diff --git a/tests/sample_results/3.6/unavailable_source.txt b/tests/sample_results/3.6/unavailable_source.txt deleted file mode 100644 index af9a4d2..0000000 --- a/tests/sample_results/3.6/unavailable_source.txt +++ /dev/null @@ -1,8 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78 4 | SOURCE IS UNAVAILABLE -12:34:56.78 5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/3.6/var_order.txt b/tests/sample_results/3.6/var_order.txt deleted file mode 100644 index f23ca83..0000000 --- a/tests/sample_results/3.6/var_order.txt +++ /dev/null @@ -1,14 +0,0 @@ -12:34:56.78 >>> Call to f in File "/path/to_file.py", line 5 -12:34:56.78 ...... _one = 1 -12:34:56.78 ...... _two = 2 -12:34:56.78 ...... _three = 3 -12:34:56.78 ...... _four = 4 -12:34:56.78 5 | def f(_one, _two, _three, _four): -12:34:56.78 6 | _five = None -12:34:56.78 7 | _six = None -12:34:56.78 8 | _seven = None -12:34:56.78 10 | _five, _six, _seven = 5, 6, 7 -12:34:56.78 .......... _five = 5 -12:34:56.78 .......... _six = 6 -12:34:56.78 .......... _seven = 7 -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/3.6/variables_classes.txt b/tests/sample_results/3.6/variables_classes.txt deleted file mode 100644 index d7ad679..0000000 --- a/tests/sample_results/3.6/variables_classes.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 22 | _s = WithSlots() -12:34:56.78 .......... _s = -12:34:56.78 .......... _s.x = 3 -12:34:56.78 .......... _s.y = 4 -12:34:56.78 23 | _lst = list(range(1000)) -12:34:56.78 .......... _lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(_lst) = 1000 -12:34:56.78 .......... _lst[997] = 997 -12:34:56.78 .......... _lst[998] = 998 -12:34:56.78 .......... _lst[999] = 999 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/watch.txt b/tests/sample_results/3.6/watch.txt deleted file mode 100644 index 1c3a9f0..0000000 --- a/tests/sample_results/3.6/watch.txt +++ /dev/null @@ -1,18 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 17 -12:34:56.78 17 | def main(): -12:34:56.78 18 | foo = Foo() -12:34:56.78 .......... foo = -12:34:56.78 .......... foo.x = 2 -12:34:56.78 .......... len(foo.__dict__["x"] * "abc") = 6 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 0 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 4 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 12 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 1 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 16 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 48 -12:34:56.78 19 | for i in range(2): -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/watch_explode.txt b/tests/sample_results/3.6/watch_explode.txt deleted file mode 100644 index 2976dc4..0000000 --- a/tests/sample_results/3.6/watch_explode.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 .......... _d['c'] = 'ignore' -12:34:56.78 15 | _point = Foo(x=3, y=4) -12:34:56.78 .......... _point = -12:34:56.78 .......... _point.x = 3 -12:34:56.78 .......... _point.y = 4 -12:34:56.78 16 | lst = [7, 8, 9] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 .......... (lst + [])[0] = 7 -12:34:56.78 .......... (lst + [])[1] = 8 -12:34:56.78 .......... (lst + [])[2] = 9 -12:34:56.78 .......... lst + [] = [7, 8, 9] -12:34:56.78 .......... len(lst + []) = 3 -12:34:56.78 17 | lst.append(10) -12:34:56.78 .......... lst = [7, 8, 9, 10] -12:34:56.78 .......... len(lst) = 4 -12:34:56.78 .......... (lst + [])[3] = 10 -12:34:56.78 .......... lst + [] = [7, 8, 9, 10] -12:34:56.78 .......... len(lst + []) = 4 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.6/watch_extras.txt b/tests/sample_results/3.6/watch_extras.txt deleted file mode 100644 index 67711cf..0000000 --- a/tests/sample_results/3.6/watch_extras.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... len(y) = 1 -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] \ No newline at end of file diff --git a/tests/sample_results/3.6/with_block_depth.txt b/tests/sample_results/3.6/with_block_depth.txt deleted file mode 100644 index 7063835..0000000 --- a/tests/sample_results/3.6/with_block_depth.txt +++ /dev/null @@ -1,20 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 21 -12:34:56.78 22 | result1 = f2(5) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 5 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 5 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 .......... result3 = 10 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 10 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 10 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 10 -12:34:56.78 22 | result1 = f2(5) -12:34:56.78 .............. result1 = 10 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/3.6/with_no_args.txt b/tests/sample_results/3.6/with_no_args.txt deleted file mode 100644 index 12f7483..0000000 --- a/tests/sample_results/3.6/with_no_args.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 6 -12:34:56.78 .......... x = 1 -12:34:56.78 7 | result = 2 + 2 -12:34:56.78 .............. result = 4 -12:34:56.78 <<< Exit with block in main -12:34:56.78 LOG: -12:34:56.78 .... x = 1 \ No newline at end of file diff --git a/tests/sample_results/3.7/all_columns.txt b/tests/sample_results/3.7/all_columns.txt deleted file mode 100644 index ad3717c..0000000 --- a/tests/sample_results/3.7/all_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo >>> Call to main..foo in File "/path/to_file.py", line 8 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 8 | def foo(): -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 9 | x = 1 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 10 | y = x + 2 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo .............. y = 3 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo <<< Return value from main..foo: None \ No newline at end of file diff --git a/tests/sample_results/3.7/cellvars.txt b/tests/sample_results/3.7/cellvars.txt deleted file mode 100644 index b0519ec..0000000 --- a/tests/sample_results/3.7/cellvars.txt +++ /dev/null @@ -1,30 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 16 -12:34:56.78 17 | result1 = f2(42) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 1 - 12:34:56.78 ...... a = 42 - 12:34:56.78 1 | def f2(a): - 12:34:56.78 2 | def f3(a): - 12:34:56.78 12 | return f3(a) - 12:34:56.78 >>> Call to f2..f3 in File "/path/to_file.py", line 2 - 12:34:56.78 .......... a = 42 - 12:34:56.78 2 | def f3(a): - 12:34:56.78 3 | x = 0 - 12:34:56.78 4 | x += 1 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 10 | return f4(a) - 12:34:56.78 >>> Call to f2..f3..f4 in File "/path/to_file.py", line 6 - 12:34:56.78 .............. _a = 42 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 7 | _y = x - 12:34:56.78 .................. _y = 1 - 12:34:56.78 8 | return 42 - 12:34:56.78 <<< Return value from f2..f3..f4: 42 - 12:34:56.78 10 | return f4(a) - 12:34:56.78 <<< Return value from f2..f3: 42 - 12:34:56.78 12 | return f3(a) - 12:34:56.78 <<< Return value from f2: 42 -12:34:56.78 17 | result1 = f2(42) -12:34:56.78 .............. result1 = 42 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/3.7/color.txt b/tests/sample_results/3.7/color.txt deleted file mode 100644 index 0deb4a9..0000000 --- a/tests/sample_results/3.7/color.txt +++ /dev/null @@ -1,51 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  18 | or foo)() -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  23 | x + y -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) - 12:34:56.78 List comprehension: - 12:34:56.78  23 | x + y - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/comprehensions.txt b/tests/sample_results/3.7/comprehensions.txt deleted file mode 100644 index 8f061aa..0000000 --- a/tests/sample_results/3.7/comprehensions.txt +++ /dev/null @@ -1,95 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 -12:34:56.78 16 | def main(): -12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ...} -12:34:56.78 17 | str({x for x in list(range(100))}) -12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, ...} -12:34:56.78 18 | str({x: x for x in list(range(100))}) -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {0, 1, 2} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 1 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {1, 2, 3} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 2 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {2, 3, 4} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0, 1, 2 - 12:34:56.78 Result: {0: {0, 1, 2}, 1: {1, 2, 3}, 2: {2, 3, 4}} -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 1 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 1 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 2 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 4 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {1, 4} -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) -12:34:56.78 22 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 - 12:34:56.78 11 | def bar(): - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 <<< Return value from bar: None -12:34:56.78 22 | bar() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/confusing_decorator_lines.txt b/tests/sample_results/3.7/confusing_decorator_lines.txt deleted file mode 100644 index 914fd36..0000000 --- a/tests/sample_results/3.7/confusing_decorator_lines.txt +++ /dev/null @@ -1,4 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | str(3) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/decorator_exception.txt b/tests/sample_results/3.7/decorator_exception.txt deleted file mode 100644 index cda77d9..0000000 --- a/tests/sample_results/3.7/decorator_exception.txt +++ /dev/null @@ -1,9 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | try: -12:34:56.78 7 | @int -12:34:56.78 !!! TypeError: int() argument must be a string, a bytes-like object or a number, not 'function' -12:34:56.78 !!! When calling decorator: @int -12:34:56.78 10 | except: -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/depth.txt b/tests/sample_results/3.7/depth.txt deleted file mode 100644 index 9260538..0000000 --- a/tests/sample_results/3.7/depth.txt +++ /dev/null @@ -1,24 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | result1 = f2(8) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 8 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 8 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 LOG: - 12:34:56.78 .... x4 * 2 = 16 - 12:34:56.78 .......... result3 = 16 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 16 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 16 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 16 -12:34:56.78 21 | result1 = f2(8) -12:34:56.78 .......... result1 = 16 -12:34:56.78 22 | return result1 -12:34:56.78 <<< Return value from main: 16 \ No newline at end of file diff --git a/tests/sample_results/3.7/django_sample.txt b/tests/sample_results/3.7/django_sample.txt deleted file mode 100644 index 22f50d0..0000000 --- a/tests/sample_results/3.7/django_sample.txt +++ /dev/null @@ -1,13 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.fake_django_settings' -12:34:56.78 7 | import django -12:34:56.78 .......... django = -12:34:56.78 9 | django.setup() -12:34:56.78 10 | from django.contrib.contenttypes.models import ContentType -12:34:56.78 .......... ContentType = -12:34:56.78 11 | queryset = ContentType.objects.all() -12:34:56.78 .......... queryset = -12:34:56.78 12 | lst = [1, 2, 3] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/enabled.txt b/tests/sample_results/3.7/enabled.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/sample_results/3.7/enabled2.txt b/tests/sample_results/3.7/enabled2.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/sample_results/3.7/end_finally.txt b/tests/sample_results/3.7/end_finally.txt deleted file mode 100644 index afb39f2..0000000 --- a/tests/sample_results/3.7/end_finally.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 0 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 9 | return -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from foo: None -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 1 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 8 | raise TypeError('bad') -12:34:56.78 !!! TypeError: bad -12:34:56.78 11 | pass -12:34:56.78 ??? Call either returned None or ended by exception \ No newline at end of file diff --git a/tests/sample_results/3.7/exception.txt b/tests/sample_results/3.7/exception.txt deleted file mode 100644 index bbc62ec..0000000 --- a/tests/sample_results/3.7/exception.txt +++ /dev/null @@ -1,78 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 19 -12:34:56.78 19 | def main(): -12:34:56.78 20 | try: -12:34:56.78 21 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 10 - 12:34:56.78 ...... _ = () - 12:34:56.78 10 | def bar(*_): - 12:34:56.78 11 | try: - 12:34:56.78 12 | str(foo()) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 - 12:34:56.78 4 | def foo(): - 12:34:56.78 5 | raise TypeError(''' - 12:34:56.78 7 | bad''') - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! Call ended by exception - 12:34:56.78 12 | str(foo()) - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! When calling: foo() - 12:34:56.78 13 | except Exception: - 12:34:56.78 14 | str(1) - 12:34:56.78 15 | raise - 12:34:56.78 !!! Call ended by exception -12:34:56.78 21 | bar() -12:34:56.78 !!! TypeError: -12:34:56.78 !!! very -12:34:56.78 !!! bad -12:34:56.78 !!! When calling: bar() -12:34:56.78 22 | except: -12:34:56.78 23 | pass -12:34:56.78 25 | try: -12:34:56.78 26 | bob( -12:34:56.78 27 | 1, -12:34:56.78 28 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: bob( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 30 | except: -12:34:56.78 31 | pass -12:34:56.78 33 | try: -12:34:56.78 34 | (None -12:34:56.78 35 | or bob)( -12:34:56.78 36 | 1, -12:34:56.78 37 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: (None -12:34:56.78 or bob)( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 39 | except: -12:34:56.78 40 | pass -12:34:56.78 42 | x = [[[2]]] -12:34:56.78 .......... len(x) = 1 -12:34:56.78 44 | try: -12:34:56.78 45 | str(x[1][0][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[1] -12:34:56.78 46 | except: -12:34:56.78 47 | pass -12:34:56.78 49 | try: -12:34:56.78 50 | str(x[0][1][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][1] -12:34:56.78 51 | except: -12:34:56.78 52 | pass -12:34:56.78 54 | try: -12:34:56.78 55 | str(x[0][0][1]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][0][1] -12:34:56.78 56 | except: -12:34:56.78 57 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/generator.txt b/tests/sample_results/3.7/generator.txt deleted file mode 100644 index 542d83d..0000000 --- a/tests/sample_results/3.7/generator.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Start generator f in File "/path/to_file.py", line 12 -12:34:56.78 ...... x1 = 0 -12:34:56.78 12 | def f(x1): -12:34:56.78 13 | assert not original_tracer_active() -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 <<< Yield value from f: 0 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 14 -12:34:56.78 .......... x1 = 0 -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 15 | assert not original_tracer_active() -12:34:56.78 16 | _x3 = 'foo' -12:34:56.78 17 | assert not original_tracer_active() -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 <<< Yield value from f: 2 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 18 -12:34:56.78 .......... x1 = 0 -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 .......... _x3 = 'foo' -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 .......... _x4 = 'looloo' -12:34:56.78 19 | assert not original_tracer_active() -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/3.7/generator_expression.txt b/tests/sample_results/3.7/generator_expression.txt deleted file mode 100644 index 8c4fa77..0000000 --- a/tests/sample_results/3.7/generator_expression.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 >>> Start generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 1 - 12:34:56.78 <<< Yield value from : 2 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Yield value from : 4 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Return value from : None -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) -12:34:56.78 <<< Return value from main: [2, 4] \ No newline at end of file diff --git a/tests/sample_results/3.7/indentation.txt b/tests/sample_results/3.7/indentation.txt deleted file mode 100644 index 401816e..0000000 --- a/tests/sample_results/3.7/indentation.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | f2() - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 9 - 12:34:56.78 9 | def f2(): - 12:34:56.78 10 | f3() - 12:34:56.78 >>> Call to f4 in File "/path/to_file.py", line 18 - 12:34:56.78 18 | def f4(): - 12:34:56.78 19 | f5() - 12:34:56.78 >>> Call to f5 in File "/path/to_file.py", line 22 - 12:34:56.78 22 | def f5(): - 12:34:56.78 23 | pass - 12:34:56.78 <<< Return value from f5: None - 12:34:56.78 19 | f5() - 12:34:56.78 <<< Return value from f4: None - 12:34:56.78 10 | f3() - 12:34:56.78 <<< Return value from f2: None -12:34:56.78 6 | f2() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/install_enabled.txt b/tests/sample_results/3.7/install_enabled.txt deleted file mode 100644 index 4243932..0000000 --- a/tests/sample_results/3.7/install_enabled.txt +++ /dev/null @@ -1,10 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 1 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 2 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 3 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 6 \ No newline at end of file diff --git a/tests/sample_results/3.7/lambda_function.txt b/tests/sample_results/3.7/lambda_function.txt deleted file mode 100644 index 32f216c..0000000 --- a/tests/sample_results/3.7/lambda_function.txt +++ /dev/null @@ -1,5 +0,0 @@ -12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 5 -12:34:56.78 .......... x = 3 -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 <<< Return value from main..: 9 \ No newline at end of file diff --git a/tests/sample_results/3.7/long_variable.txt b/tests/sample_results/3.7/long_variable.txt deleted file mode 100644 index 7514952..0000000 --- a/tests/sample_results/3.7/long_variable.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | foo = list(range(1000)) -12:34:56.78 .......... foo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(foo) = 1000 -12:34:56.78 7 | return foo -12:34:56.78 <<< Return value from main: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] \ No newline at end of file diff --git a/tests/sample_results/3.7/method_and_prefix.txt b/tests/sample_results/3.7/method_and_prefix.txt deleted file mode 100644 index f640c90..0000000 --- a/tests/sample_results/3.7/method_and_prefix.txt +++ /dev/null @@ -1,9 +0,0 @@ -ZZZ 12:34:56.78 >>> Call to Baz.square in File "/path/to_file.py", line 11 -ZZZ 12:34:56.78 .......... self = -ZZZ 12:34:56.78 .......... self.x = 2 -ZZZ 12:34:56.78 11 | def square(self): -ZZZ 12:34:56.78 12 | foo = 7 -ZZZ 12:34:56.78 13 | self.x **= 2 -ZZZ 12:34:56.78 .............. self.x = 4 -ZZZ 12:34:56.78 14 | return self -ZZZ 12:34:56.78 <<< Return value from Baz.square: \ No newline at end of file diff --git a/tests/sample_results/3.7/multiline.txt b/tests/sample_results/3.7/multiline.txt deleted file mode 100644 index 020f741..0000000 --- a/tests/sample_results/3.7/multiline.txt +++ /dev/null @@ -1,48 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = ( -12:34:56.78 7 | [ -12:34:56.78 8 | bar(), # 1 -12:34:56.78 9 | bar(), # 2 -12:34:56.78 .......... x = [None, None] -12:34:56.78 .......... len(x) = 2 -12:34:56.78 13 | with context( -12:34:56.78 14 | bar(), # 1 -12:34:56.78 15 | bar(), # 2 -12:34:56.78 17 | try: -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 .................. _ = None -12:34:56.78 24 | while bar( -12:34:56.78 25 | bar(), # 1 -12:34:56.78 26 | bar(), # 2 -12:34:56.78 30 | bar() -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 32 | bar() -12:34:56.78 33 | raise ValueError -12:34:56.78 !!! ValueError -12:34:56.78 34 | except ( -12:34:56.78 35 | ValueError, -12:34:56.78 36 | TypeError, -12:34:56.78 38 | pass -12:34:56.78 40 | bar( -12:34:56.78 42 | bar(), # 1 -12:34:56.78 43 | bar(), # 2 -12:34:56.78 47 | with context( -12:34:56.78 48 | bar(), # 1 -12:34:56.78 49 | bar(), # 2 -12:34:56.78 51 | if bar( -12:34:56.78 52 | bar(), # 1 -12:34:56.78 53 | bar(), # 2 -12:34:56.78 56 | elif [ -12:34:56.78 57 | bar( -12:34:56.78 58 | bar(), # 1 -12:34:56.78 59 | bar(), # 2 -12:34:56.78 62 | pass -12:34:56.78 64 | return x -12:34:56.78 <<< Return value from main: [None, None] \ No newline at end of file diff --git a/tests/sample_results/3.7/no_columns.txt b/tests/sample_results/3.7/no_columns.txt deleted file mode 100644 index 4cc92cd..0000000 --- a/tests/sample_results/3.7/no_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ ->>> Call to main in File "/path/to_file.py", line 7 - 7 | def main(): - 8 | x = 1 - 9 | y = x + 2 - .......... y = 3 - <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/pandas_sample.txt b/tests/sample_results/3.7/pandas_sample.txt deleted file mode 100644 index 5384cb5..0000000 --- a/tests/sample_results/3.7/pandas_sample.txt +++ /dev/null @@ -1,35 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 7 -12:34:56.78 7 | def main(): -12:34:56.78 8 | arr = np.arange(10000) -12:34:56.78 .......... arr = array([ 0, 1, 2, ..., 9997, 9998, 9999]) -12:34:56.78 .......... arr.shape = (10000,) -12:34:56.78 .......... arr.dtype = dtype('int64') -12:34:56.78 9 | arr = arr.reshape((100, 100)) -12:34:56.78 .......... arr = array([[ 0, 1, 2, ..., 97, 98, 99], -12:34:56.78 [ 100, 101, 102, ..., 197, 198, 199], -12:34:56.78 [ 200, 201, 202, ..., 297, 298, 299], -12:34:56.78 ..., -12:34:56.78 [9700, 9701, 9702, ..., 9797, 9798, 9799], -12:34:56.78 [9800, 9801, 9802, ..., 9897, 9898, 9899], -12:34:56.78 [9900, 9901, 9902, ..., 9997, 9998, 9999]]) -12:34:56.78 .......... arr.shape = (100, 100) -12:34:56.78 10 | df = pd.DataFrame(arr) -12:34:56.78 .......... df = 0 1 2 3 ... 96 97 98 99 -12:34:56.78 0 0 1 2 3 ... 96 97 98 99 -12:34:56.78 1 100 101 102 103 ... 196 197 198 199 -12:34:56.78 2 200 201 202 203 ... 296 297 298 299 -12:34:56.78 3 300 301 302 303 ... 396 397 398 399 -12:34:56.78 .. ... ... ... ... ... ... ... ... ... -12:34:56.78 96 9600 9601 9602 9603 ... 9696 9697 9698 9699 -12:34:56.78 97 9700 9701 9702 9703 ... 9796 9797 9798 9799 -12:34:56.78 98 9800 9801 9802 9803 ... 9896 9897 9898 9899 -12:34:56.78 99 9900 9901 9902 9903 ... 9996 9997 9998 9999 -12:34:56.78 -12:34:56.78 [100 rows x 100 columns] -12:34:56.78 .......... df.shape = (100, 100) -12:34:56.78 11 | series = df[0] -12:34:56.78 .......... series = 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 -12:34:56.78 .......... series.shape = (100,) -12:34:56.78 .......... series.dtype = dtype('int64') -12:34:56.78 12 | return series -12:34:56.78 <<< Return value from main: 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 \ No newline at end of file diff --git a/tests/sample_results/3.7/pp.txt b/tests/sample_results/3.7/pp.txt deleted file mode 100644 index e79df44..0000000 --- a/tests/sample_results/3.7/pp.txt +++ /dev/null @@ -1,151 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | pp(pp(x + 1) + max(*pp(y + 2, y + 3))) -12:34:56.78 LOG: -12:34:56.78 .... x + 1 = 2 -12:34:56.78 LOG: -12:34:56.78 .... y + 2 = 4 -12:34:56.78 .... y + 3 = 5 -12:34:56.78 LOG: -12:34:56.78 .... pp(x + 1) + max(*pp(y + 2, y + 3)) = 7 -12:34:56.78 9 | assert pp.deep(lambda: x + 1 + max(y + 2, y + 3)) == 7 -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ........ x + 1 = 2 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ max(y + 2, y + 3) = 5 -12:34:56.78 .... x + 1 + max(y + 2, y + 3) = 7 -12:34:56.78 10 | lst = list(range(30)) -12:34:56.78 .......... lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ..., 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .......... len(lst) = 30 -12:34:56.78 11 | pp.deep(lambda: list( -12:34:56.78 LOG: -12:34:56.78 ............ list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] = at 0xABC> -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 4 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [4, 5] -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 6 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [5, 6] -12:34:56.78 ........ list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) = [[4, 5], [5, 6]] -12:34:56.78 ........ lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .... list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) + lst = [[4, 5], -12:34:56.78 [5, 6], -12:34:56.78 0, -12:34:56.78 1, -12:34:56.78 2, -12:34:56.78 3, -12:34:56.78 4, -12:34:56.78 5, -12:34:56.78 6, -12:34:56.78 7, -12:34:56.78 8, -12:34:56.78 9, -12:34:56.78 10, -12:34:56.78 11, -12:34:56.78 12, -12:34:56.78 13, -12:34:56.78 14, -12:34:56.78 15, -12:34:56.78 16, -12:34:56.78 17, -12:34:56.78 18, -12:34:56.78 19, -12:34:56.78 20, -12:34:56.78 21, -12:34:56.78 22, -12:34:56.78 23, -12:34:56.78 24, -12:34:56.78 25, -12:34:56.78 26, -12:34:56.78 27, -12:34:56.78 28, -12:34:56.78 29] -12:34:56.78 15 | pp(dict.fromkeys(range(30), 4)) -12:34:56.78 LOG: -12:34:56.78 .... dict.fromkeys(range(30), 4) = {0: 4, -12:34:56.78 1: 4, -12:34:56.78 2: 4, -12:34:56.78 3: 4, -12:34:56.78 4: 4, -12:34:56.78 5: 4, -12:34:56.78 6: 4, -12:34:56.78 7: 4, -12:34:56.78 8: 4, -12:34:56.78 9: 4, -12:34:56.78 10: 4, -12:34:56.78 11: 4, -12:34:56.78 12: 4, -12:34:56.78 13: 4, -12:34:56.78 14: 4, -12:34:56.78 15: 4, -12:34:56.78 16: 4, -12:34:56.78 17: 4, -12:34:56.78 18: 4, -12:34:56.78 19: 4, -12:34:56.78 20: 4, -12:34:56.78 21: 4, -12:34:56.78 22: 4, -12:34:56.78 23: 4, -12:34:56.78 24: 4, -12:34:56.78 25: 4, -12:34:56.78 26: 4, -12:34:56.78 27: 4, -12:34:56.78 28: 4, -12:34:56.78 29: 4} -12:34:56.78 16 | pp.deep(lambda: BadRepr() and 1) -12:34:56.78 LOG: -12:34:56.78 ............ BadRepr = -12:34:56.78 ........ BadRepr() = -12:34:56.78 .... BadRepr() and 1 = 1 -12:34:56.78 17 | pp.deep(lambda: 1 / 2) -12:34:56.78 LOG: -12:34:56.78 .... 1 / 2 = 0.5 -12:34:56.78 19 | try: -12:34:56.78 20 | pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 LOG: -12:34:56.78 ............ y = 2 -12:34:56.78 ........ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ (y + 3) / 0 = !!! ZeroDivisionError! -12:34:56.78 !!! ZeroDivisionError: division by zero -12:34:56.78 !!! When calling: pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 21 | except ZeroDivisionError: -12:34:56.78 22 | pass -12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) -12:34:56.78 LOG: -12:34:56.78 ........ caller = -12:34:56.78 ........ lambda: 2 * 3 = at 0xABC> -12:34:56.78 ............ 2 * 3 = 6 -12:34:56.78 .... caller(lambda: 2 * 3) = at 0xABC> -12:34:56.78 .......... f = at 0xABC> -12:34:56.78 27 | f() - 12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 26 - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 <<< Return value from main..: 6 -12:34:56.78 27 | f() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/pp_custom_pformat.txt b/tests/sample_results/3.7/pp_custom_pformat.txt deleted file mode 100644 index adf5470..0000000 --- a/tests/sample_results/3.7/pp_custom_pformat.txt +++ /dev/null @@ -1,69 +0,0 @@ -Test with custom pformat -12:34:56.78 LOG: -12:34:56.78 .... x = custom(1) -12:34:56.78 LOG: -12:34:56.78 .... pp(x) + y = custom(3) -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ............ y = 2 -12:34:56.78 ........ x + y = 3 -12:34:56.78 ........ y = 2 -12:34:56.78 .... (x + y) + y = custom(5) -12:34:56.78 >>> Enter with block in test_misc in File "/path/to_file.py", line 11 -12:34:56.78 .......... x = 1 -12:34:56.78 .......... y = 2 -12:34:56.78 12 | y = 3 # custom pformat is not used here -12:34:56.78 .............. y = 3 -12:34:56.78 <<< Exit with block in test_misc -12:34:56.78 LOG: -12:34:56.78 .... d = custom(['a long key to be pretty printed prettily', ['prettyprinter prints datetime with keyword arguments:', datetime.datetime(1970, 1, 1, 0, 0, 42)]]) - -Test without prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = ['a long key to be pretty printed prettily', -12:34:56.78 ['prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42)]] - -Test with prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime( -12:34:56.78 year=1970, -12:34:56.78 month=1, -12:34:56.78 day=1, -12:34:56.78 hour=0, -12:34:56.78 minute=0, -12:34:56.78 second=42 -12:34:56.78 ) -12:34:56.78 ] -12:34:56.78 ] - -Test without prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42), -12:34:56.78 ], -12:34:56.78 ] - -Test with prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime( -12:34:56.78 year=1970, -12:34:56.78 month=1, -12:34:56.78 day=1, -12:34:56.78 hour=0, -12:34:56.78 minute=0, -12:34:56.78 second=42 -12:34:56.78 ) -12:34:56.78 ] -12:34:56.78 ] \ No newline at end of file diff --git a/tests/sample_results/3.7/pp_exception.txt b/tests/sample_results/3.7/pp_exception.txt deleted file mode 100644 index 025dfca..0000000 --- a/tests/sample_results/3.7/pp_exception.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | try: -12:34:56.78 9 | pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 LOG: -12:34:56.78 ................ x = 1 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ x + y = 3 -12:34:56.78 ................ bad = -12:34:56.78 ............ bad() = !!! TypeError! -12:34:56.78 !!! TypeError: bad -12:34:56.78 !!! When calling: pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 10 | except: -12:34:56.78 11 | sample_traceback() -Traceback (most recent call last): - pp.deep(lambda: x + y + bad() + 2) - return PPEvent(self, [arg], deep=True).returns - self.returns = self.deep_pp(call_arg.body, frame) - return eval(code, frame.f_globals, frame.f_locals) - pp.deep(lambda: x + y + bad() + 2) - raise TypeError('bad') -TypeError: bad -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/recursion.txt b/tests/sample_results/3.7/recursion.txt deleted file mode 100644 index 05e77db..0000000 --- a/tests/sample_results/3.7/recursion.txt +++ /dev/null @@ -1,45 +0,0 @@ -12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 4 -12:34:56.78 5 | def factorial(x): -12:34:56.78 6 | if x <= 1: -12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 3 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 2 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 1 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 7 | return 1 - 12:34:56.78 <<< Return value from factorial: 1 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 2 - 12:34:56.78 ...... b = 1 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 2 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 2 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 3 - 12:34:56.78 ...... b = 2 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 6 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 6 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 4 - 12:34:56.78 ...... b = 6 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 24 -12:34:56.78 8 | return mul(x, factorial(x - 1)) -12:34:56.78 <<< Return value from factorial: 24 \ No newline at end of file diff --git a/tests/sample_results/3.7/spy.txt b/tests/sample_results/3.7/spy.txt deleted file mode 100644 index d1a3204..0000000 --- a/tests/sample_results/3.7/spy.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 6 -12:34:56.78 6 | def foo(): -12:34:56.78 7 | x = pp.deep(lambda: 1 + 2) -12:34:56.78 LOG: -12:34:56.78 .... = 3 -12:34:56.78 .......... x = 3 -12:34:56.78 8 | y = pp(3 + 4, 5 + 6)[0] -12:34:56.78 LOG: -12:34:56.78 .... = 7 -12:34:56.78 .... = 11 -12:34:56.78 .......... y = 7 -12:34:56.78 9 | return x + y -12:34:56.78 <<< Return value from foo: 10 -12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 14 -12:34:56.78 14 | def bar(): -12:34:56.78 15 | result = pp(4 + 6, 7 + 8) -12:34:56.78 LOG: -12:34:56.78 .... = 10 -12:34:56.78 .... = 15 -12:34:56.78 .......... result = (10, 15) -12:34:56.78 .......... len(result) = 2 -12:34:56.78 16 | return result[0] -12:34:56.78 <<< Return value from bar: 10 \ No newline at end of file diff --git a/tests/sample_results/3.7/threads.txt b/tests/sample_results/3.7/threads.txt deleted file mode 100644 index 496e974..0000000 --- a/tests/sample_results/3.7/threads.txt +++ /dev/null @@ -1,12 +0,0 @@ -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 -longername >>> Call to foo in File "/path/to_file.py", line 9 -longername 9 | def foo(): -longername 10 | return 1 -longername <<< Return value from foo: 1 -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 \ No newline at end of file diff --git a/tests/sample_results/3.7/unavailable_source.txt b/tests/sample_results/3.7/unavailable_source.txt deleted file mode 100644 index af9a4d2..0000000 --- a/tests/sample_results/3.7/unavailable_source.txt +++ /dev/null @@ -1,8 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78 4 | SOURCE IS UNAVAILABLE -12:34:56.78 5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/3.7/var_order.txt b/tests/sample_results/3.7/var_order.txt deleted file mode 100644 index f23ca83..0000000 --- a/tests/sample_results/3.7/var_order.txt +++ /dev/null @@ -1,14 +0,0 @@ -12:34:56.78 >>> Call to f in File "/path/to_file.py", line 5 -12:34:56.78 ...... _one = 1 -12:34:56.78 ...... _two = 2 -12:34:56.78 ...... _three = 3 -12:34:56.78 ...... _four = 4 -12:34:56.78 5 | def f(_one, _two, _three, _four): -12:34:56.78 6 | _five = None -12:34:56.78 7 | _six = None -12:34:56.78 8 | _seven = None -12:34:56.78 10 | _five, _six, _seven = 5, 6, 7 -12:34:56.78 .......... _five = 5 -12:34:56.78 .......... _six = 6 -12:34:56.78 .......... _seven = 7 -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/3.7/variables_classes.txt b/tests/sample_results/3.7/variables_classes.txt deleted file mode 100644 index d7ad679..0000000 --- a/tests/sample_results/3.7/variables_classes.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 22 | _s = WithSlots() -12:34:56.78 .......... _s = -12:34:56.78 .......... _s.x = 3 -12:34:56.78 .......... _s.y = 4 -12:34:56.78 23 | _lst = list(range(1000)) -12:34:56.78 .......... _lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(_lst) = 1000 -12:34:56.78 .......... _lst[997] = 997 -12:34:56.78 .......... _lst[998] = 998 -12:34:56.78 .......... _lst[999] = 999 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/watch.txt b/tests/sample_results/3.7/watch.txt deleted file mode 100644 index 1c3a9f0..0000000 --- a/tests/sample_results/3.7/watch.txt +++ /dev/null @@ -1,18 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 17 -12:34:56.78 17 | def main(): -12:34:56.78 18 | foo = Foo() -12:34:56.78 .......... foo = -12:34:56.78 .......... foo.x = 2 -12:34:56.78 .......... len(foo.__dict__["x"] * "abc") = 6 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 0 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 4 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 12 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 1 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 16 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 48 -12:34:56.78 19 | for i in range(2): -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/watch_explode.txt b/tests/sample_results/3.7/watch_explode.txt deleted file mode 100644 index 2976dc4..0000000 --- a/tests/sample_results/3.7/watch_explode.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 .......... _d['c'] = 'ignore' -12:34:56.78 15 | _point = Foo(x=3, y=4) -12:34:56.78 .......... _point = -12:34:56.78 .......... _point.x = 3 -12:34:56.78 .......... _point.y = 4 -12:34:56.78 16 | lst = [7, 8, 9] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 .......... (lst + [])[0] = 7 -12:34:56.78 .......... (lst + [])[1] = 8 -12:34:56.78 .......... (lst + [])[2] = 9 -12:34:56.78 .......... lst + [] = [7, 8, 9] -12:34:56.78 .......... len(lst + []) = 3 -12:34:56.78 17 | lst.append(10) -12:34:56.78 .......... lst = [7, 8, 9, 10] -12:34:56.78 .......... len(lst) = 4 -12:34:56.78 .......... (lst + [])[3] = 10 -12:34:56.78 .......... lst + [] = [7, 8, 9, 10] -12:34:56.78 .......... len(lst + []) = 4 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.7/watch_extras.txt b/tests/sample_results/3.7/watch_extras.txt deleted file mode 100644 index 67711cf..0000000 --- a/tests/sample_results/3.7/watch_extras.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... len(y) = 1 -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] \ No newline at end of file diff --git a/tests/sample_results/3.7/with_block.txt b/tests/sample_results/3.7/with_block.txt deleted file mode 100644 index fd46d74..0000000 --- a/tests/sample_results/3.7/with_block.txt +++ /dev/null @@ -1,49 +0,0 @@ -12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 -12:34:56.78 .......... x = 2 -12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 - 12:34:56.78 .......... x = 1 - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Call to bar1 in File "/path/to_file.py", line 26 - 12:34:56.78 ...... _x = 0 - 12:34:56.78 26 | def bar1(_x): - 12:34:56.78 27 | qux() - 12:34:56.78 <<< Return value from bar1: None - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None - 12:34:56.78 18 | bar2(x) - 12:34:56.78 19 | qux() - 12:34:56.78 <<< Exit with block in foo - 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 - 12:34:56.78 ...... _x = 9 - 12:34:56.78 36 | def bar3(_x): - 12:34:56.78 37 | qux() - 12:34:56.78 <<< Return value from bar3: None -12:34:56.78 17 | foo(x - 1) -12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None -12:34:56.78 18 | bar2(x) -12:34:56.78 19 | qux() -12:34:56.78 <<< Exit with block in foo -12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 -12:34:56.78 ...... _x = 9 -12:34:56.78 36 | def bar3(_x): -12:34:56.78 37 | qux() -12:34:56.78 <<< Return value from bar3: None -12:34:56.78 >>> Enter with block in gen in File "/path/to_file.py", line 47 -12:34:56.78 .................. i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Yield value from gen: 1 -12:34:56.78 >>> Re-enter generator gen in File "/path/to_file.py", line 48 -12:34:56.78 ...................... i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Exit with block in gen \ No newline at end of file diff --git a/tests/sample_results/3.7/with_block_depth.txt b/tests/sample_results/3.7/with_block_depth.txt deleted file mode 100644 index 7063835..0000000 --- a/tests/sample_results/3.7/with_block_depth.txt +++ /dev/null @@ -1,20 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 21 -12:34:56.78 22 | result1 = f2(5) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 5 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 5 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 .......... result3 = 10 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 10 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 10 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 10 -12:34:56.78 22 | result1 = f2(5) -12:34:56.78 .............. result1 = 10 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/3.8/color.txt b/tests/sample_results/3.8/color.txt index b7bae1a..14512dc 100644 --- a/tests/sample_results/3.8/color.txt +++ b/tests/sample_results/3.8/color.txt @@ -1,54 +1,54 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() -12:34:56.78  17 | (None - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  17 | (None -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  22 | [ -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  22 | [ - 12:34:56.78 List comprehension: - 12:34:56.78  22 | [ - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78  22 | [ -12:34:56.78  21 | pp( -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78 <<< Return value from main: None \ No newline at end of file +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | pp( +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  22 | [ + 12:34:56.78 List comprehension: + 12:34:56.78  22 | [ + 12:34:56.78 .......... Iterating over <zip object at 0xABC> + 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 + 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 + 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] +12:34:56.78  22 | [ +12:34:56.78  21 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  ] = [3000, +12:34:56.78  3002, +12:34:56.78  3004, +12:34:56.78  3006, +12:34:56.78  3008, +12:34:56.78  3010, +12:34:56.78  3012, +12:34:56.78  3014, +12:34:56.78  3016, +12:34:56.78  3018, +12:34:56.78  3020, +12:34:56.78  3022, +12:34:56.78  3024, +12:34:56.78  3026, +12:34:56.78  3028, +12:34:56.78  3030, +12:34:56.78  3032, +12:34:56.78  3034, +12:34:56.78  3036, +12:34:56.78  3038] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.8/color_without_comprehension.txt b/tests/sample_results/3.8/color_without_comprehension.txt new file mode 100644 index 0000000..0b30795 --- /dev/null +++ b/tests/sample_results/3.8/color_without_comprehension.txt @@ -0,0 +1,28 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | x = 1 +12:34:56.78  22 | y = 2 +12:34:56.78  23 | pp( +12:34:56.78  25 | x + y +12:34:56.78  24 | [ +12:34:56.78  23 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  ] = [3] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.8/unavailable_source.txt b/tests/sample_results/3.8/unavailable_source.txt index af9a4d2..d330b61 100644 --- a/tests/sample_results/3.8/unavailable_source.txt +++ b/tests/sample_results/3.8/unavailable_source.txt @@ -2,7 +2,7 @@ 12:34:56.78 4 | SOURCE IS UNAVAILABLE 12:34:56.78 5 | SOURCE IS UNAVAILABLE 12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file +12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 +12:34:56.78  4 | SOURCE IS UNAVAILABLE +12:34:56.78  5 | SOURCE IS UNAVAILABLE +12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/3.9/color.txt b/tests/sample_results/3.9/color.txt index b7bae1a..14512dc 100644 --- a/tests/sample_results/3.9/color.txt +++ b/tests/sample_results/3.9/color.txt @@ -1,54 +1,54 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() -12:34:56.78  17 | (None - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  17 | (None -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  22 | [ -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  22 | [ - 12:34:56.78 List comprehension: - 12:34:56.78  22 | [ - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78  22 | [ -12:34:56.78  21 | pp( -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78 <<< Return value from main: None \ No newline at end of file +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | pp( +12:34:56.78  22 | [ +12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  22 | [ + 12:34:56.78 List comprehension: + 12:34:56.78  22 | [ + 12:34:56.78 .......... Iterating over <zip object at 0xABC> + 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 + 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 + 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] +12:34:56.78  22 | [ +12:34:56.78  21 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) +12:34:56.78  ] = [3000, +12:34:56.78  3002, +12:34:56.78  3004, +12:34:56.78  3006, +12:34:56.78  3008, +12:34:56.78  3010, +12:34:56.78  3012, +12:34:56.78  3014, +12:34:56.78  3016, +12:34:56.78  3018, +12:34:56.78  3020, +12:34:56.78  3022, +12:34:56.78  3024, +12:34:56.78  3026, +12:34:56.78  3028, +12:34:56.78  3030, +12:34:56.78  3032, +12:34:56.78  3034, +12:34:56.78  3036, +12:34:56.78  3038] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.9/color_without_comprehension.txt b/tests/sample_results/3.9/color_without_comprehension.txt new file mode 100644 index 0000000..0b30795 --- /dev/null +++ b/tests/sample_results/3.9/color_without_comprehension.txt @@ -0,0 +1,28 @@ +12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 +12:34:56.78  15 | def main(): +12:34:56.78  16 | try: +12:34:56.78  17 | (None +12:34:56.78  18 | or foo)() +12:34:56.78  17 | (None + 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 + 12:34:56.78  10 | def foo(): + 12:34:56.78  11 | raise TypeError + 12:34:56.78 !!! TypeError + 12:34:56.78 !!! Call ended by exception +12:34:56.78  17 | (None +12:34:56.78 !!! TypeError +12:34:56.78 !!! When calling: (None +12:34:56.78  or foo)() +12:34:56.78  19 | except: +12:34:56.78  20 | pass +12:34:56.78  21 | x = 1 +12:34:56.78  22 | y = 2 +12:34:56.78  23 | pp( +12:34:56.78  25 | x + y +12:34:56.78  24 | [ +12:34:56.78  23 | pp( +12:34:56.78 LOG: +12:34:56.78 .... [ +12:34:56.78  x + y +12:34:56.78  ] = [3] +12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/3.9/pandas_sample.txt b/tests/sample_results/3.9/pandas_sample.txt index 5384cb5..9502011 100644 --- a/tests/sample_results/3.9/pandas_sample.txt +++ b/tests/sample_results/3.9/pandas_sample.txt @@ -28,8 +28,8 @@ 12:34:56.78 [100 rows x 100 columns] 12:34:56.78 .......... df.shape = (100, 100) 12:34:56.78 11 | series = df[0] -12:34:56.78 .......... series = 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 +12:34:56.78 .......... series = 0 = np.int64(0); 1 = np.int64(100); 2 = np.int64(200); ...; 97 = np.int64(9700); 98 = np.int64(9800); 99 = np.int64(9900) 12:34:56.78 .......... series.shape = (100,) 12:34:56.78 .......... series.dtype = dtype('int64') 12:34:56.78 12 | return series -12:34:56.78 <<< Return value from main: 0 = 0; 1 = 100; 2 = 200; ...; 97 = 9700; 98 = 9800; 99 = 9900 \ No newline at end of file +12:34:56.78 <<< Return value from main: 0 = np.int64(0); 1 = np.int64(100); 2 = np.int64(200); ...; 97 = np.int64(9700); 98 = np.int64(9800); 99 = np.int64(9900) \ No newline at end of file diff --git a/tests/sample_results/3.9/unavailable_source.txt b/tests/sample_results/3.9/unavailable_source.txt index af9a4d2..d330b61 100644 --- a/tests/sample_results/3.9/unavailable_source.txt +++ b/tests/sample_results/3.9/unavailable_source.txt @@ -2,7 +2,7 @@ 12:34:56.78 4 | SOURCE IS UNAVAILABLE 12:34:56.78 5 | SOURCE IS UNAVAILABLE 12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file +12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 +12:34:56.78  4 | SOURCE IS UNAVAILABLE +12:34:56.78  5 | SOURCE IS UNAVAILABLE +12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/all_columns.txt b/tests/sample_results/pypy2.7/all_columns.txt deleted file mode 100644 index ad3717c..0000000 --- a/tests/sample_results/pypy2.7/all_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo >>> Call to main..foo in File "/path/to_file.py", line 8 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 8 | def foo(): -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 9 | x = 1 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 10 | y = x + 2 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo .............. y = 3 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo <<< Return value from main..foo: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/cellvars.txt b/tests/sample_results/pypy2.7/cellvars.txt deleted file mode 100644 index b0519ec..0000000 --- a/tests/sample_results/pypy2.7/cellvars.txt +++ /dev/null @@ -1,30 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 16 -12:34:56.78 17 | result1 = f2(42) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 1 - 12:34:56.78 ...... a = 42 - 12:34:56.78 1 | def f2(a): - 12:34:56.78 2 | def f3(a): - 12:34:56.78 12 | return f3(a) - 12:34:56.78 >>> Call to f2..f3 in File "/path/to_file.py", line 2 - 12:34:56.78 .......... a = 42 - 12:34:56.78 2 | def f3(a): - 12:34:56.78 3 | x = 0 - 12:34:56.78 4 | x += 1 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 10 | return f4(a) - 12:34:56.78 >>> Call to f2..f3..f4 in File "/path/to_file.py", line 6 - 12:34:56.78 .............. _a = 42 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 7 | _y = x - 12:34:56.78 .................. _y = 1 - 12:34:56.78 8 | return 42 - 12:34:56.78 <<< Return value from f2..f3..f4: 42 - 12:34:56.78 10 | return f4(a) - 12:34:56.78 <<< Return value from f2..f3: 42 - 12:34:56.78 12 | return f3(a) - 12:34:56.78 <<< Return value from f2: 42 -12:34:56.78 17 | result1 = f2(42) -12:34:56.78 .............. result1 = 42 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/color.txt b/tests/sample_results/pypy2.7/color.txt deleted file mode 100644 index ca54e2d..0000000 --- a/tests/sample_results/pypy2.7/color.txt +++ /dev/null @@ -1,103 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  18 | or foo)() -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1000 -12:34:56.78 .......... y = 2000 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1001 -12:34:56.78 .......... y = 2001 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1002 -12:34:56.78 .......... y = 2002 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1003 -12:34:56.78 .......... y = 2003 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1004 -12:34:56.78 .......... y = 2004 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1005 -12:34:56.78 .......... y = 2005 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1006 -12:34:56.78 .......... y = 2006 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1007 -12:34:56.78 .......... y = 2007 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1008 -12:34:56.78 .......... y = 2008 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1009 -12:34:56.78 .......... y = 2009 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1010 -12:34:56.78 .......... y = 2010 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1011 -12:34:56.78 .......... y = 2011 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1012 -12:34:56.78 .......... y = 2012 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1013 -12:34:56.78 .......... y = 2013 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1014 -12:34:56.78 .......... y = 2014 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1015 -12:34:56.78 .......... y = 2015 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1016 -12:34:56.78 .......... y = 2016 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1017 -12:34:56.78 .......... y = 2017 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1018 -12:34:56.78 .......... y = 2018 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 .......... x = 1019 -12:34:56.78 .......... y = 2019 -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/comprehensions.txt b/tests/sample_results/pypy2.7/comprehensions.txt deleted file mode 100644 index 8f061aa..0000000 --- a/tests/sample_results/pypy2.7/comprehensions.txt +++ /dev/null @@ -1,95 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 -12:34:56.78 16 | def main(): -12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ...} -12:34:56.78 17 | str({x for x in list(range(100))}) -12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, ...} -12:34:56.78 18 | str({x: x for x in list(range(100))}) -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {0, 1, 2} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 1 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {1, 2, 3} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 2 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {2, 3, 4} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0, 1, 2 - 12:34:56.78 Result: {0: {0, 1, 2}, 1: {1, 2, 3}, 2: {2, 3, 4}} -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 1 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 1 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 2 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 4 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {1, 4} -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) -12:34:56.78 22 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 - 12:34:56.78 11 | def bar(): - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 <<< Return value from bar: None -12:34:56.78 22 | bar() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/confusing_decorator_lines.txt b/tests/sample_results/pypy2.7/confusing_decorator_lines.txt deleted file mode 100644 index 914fd36..0000000 --- a/tests/sample_results/pypy2.7/confusing_decorator_lines.txt +++ /dev/null @@ -1,4 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | str(3) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/decorator_exception.txt b/tests/sample_results/pypy2.7/decorator_exception.txt deleted file mode 100644 index c59657d..0000000 --- a/tests/sample_results/pypy2.7/decorator_exception.txt +++ /dev/null @@ -1,9 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | try: -12:34:56.78 7 | @int -12:34:56.78 !!! TypeError: int() argument must be a string or a number, not 'function' -12:34:56.78 !!! When calling decorator: @int -12:34:56.78 10 | except: -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/depth.txt b/tests/sample_results/pypy2.7/depth.txt deleted file mode 100644 index 9260538..0000000 --- a/tests/sample_results/pypy2.7/depth.txt +++ /dev/null @@ -1,24 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | result1 = f2(8) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 8 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 8 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 LOG: - 12:34:56.78 .... x4 * 2 = 16 - 12:34:56.78 .......... result3 = 16 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 16 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 16 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 16 -12:34:56.78 21 | result1 = f2(8) -12:34:56.78 .......... result1 = 16 -12:34:56.78 22 | return result1 -12:34:56.78 <<< Return value from main: 16 \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/enabled2.txt b/tests/sample_results/pypy2.7/enabled2.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/sample_results/pypy2.7/end_finally.txt b/tests/sample_results/pypy2.7/end_finally.txt deleted file mode 100644 index afb39f2..0000000 --- a/tests/sample_results/pypy2.7/end_finally.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 0 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 9 | return -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from foo: None -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 1 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 8 | raise TypeError('bad') -12:34:56.78 !!! TypeError: bad -12:34:56.78 11 | pass -12:34:56.78 ??? Call either returned None or ended by exception \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/exception.txt b/tests/sample_results/pypy2.7/exception.txt deleted file mode 100644 index abf9c1b..0000000 --- a/tests/sample_results/pypy2.7/exception.txt +++ /dev/null @@ -1,77 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 19 -12:34:56.78 19 | def main(): -12:34:56.78 20 | try: -12:34:56.78 21 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 10 - 12:34:56.78 ...... _ = () - 12:34:56.78 10 | def bar(*_): - 12:34:56.78 11 | try: - 12:34:56.78 12 | str(foo()) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 - 12:34:56.78 4 | def foo(): - 12:34:56.78 5 | raise TypeError(''' - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! Call ended by exception - 12:34:56.78 12 | str(foo()) - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! When calling: foo() - 12:34:56.78 13 | except Exception: - 12:34:56.78 14 | str(1) - 12:34:56.78 15 | raise - 12:34:56.78 !!! Call ended by exception -12:34:56.78 21 | bar() -12:34:56.78 !!! TypeError: -12:34:56.78 !!! very -12:34:56.78 !!! bad -12:34:56.78 !!! When calling: bar() -12:34:56.78 22 | except: -12:34:56.78 23 | pass -12:34:56.78 25 | try: -12:34:56.78 26 | bob( -12:34:56.78 27 | 1, -12:34:56.78 28 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: bob( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 30 | except: -12:34:56.78 31 | pass -12:34:56.78 33 | try: -12:34:56.78 34 | (None -12:34:56.78 35 | or bob)( -12:34:56.78 36 | 1, -12:34:56.78 37 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: (None -12:34:56.78 or bob)( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 39 | except: -12:34:56.78 40 | pass -12:34:56.78 42 | x = [[[2]]] -12:34:56.78 .......... len(x) = 1 -12:34:56.78 44 | try: -12:34:56.78 45 | str(x[1][0][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[1] -12:34:56.78 46 | except: -12:34:56.78 47 | pass -12:34:56.78 49 | try: -12:34:56.78 50 | str(x[0][1][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][1] -12:34:56.78 51 | except: -12:34:56.78 52 | pass -12:34:56.78 54 | try: -12:34:56.78 55 | str(x[0][0][1]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][0][1] -12:34:56.78 56 | except: -12:34:56.78 57 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/generator.txt b/tests/sample_results/pypy2.7/generator.txt deleted file mode 100644 index 542d83d..0000000 --- a/tests/sample_results/pypy2.7/generator.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Start generator f in File "/path/to_file.py", line 12 -12:34:56.78 ...... x1 = 0 -12:34:56.78 12 | def f(x1): -12:34:56.78 13 | assert not original_tracer_active() -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 <<< Yield value from f: 0 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 14 -12:34:56.78 .......... x1 = 0 -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 15 | assert not original_tracer_active() -12:34:56.78 16 | _x3 = 'foo' -12:34:56.78 17 | assert not original_tracer_active() -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 <<< Yield value from f: 2 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 18 -12:34:56.78 .......... x1 = 0 -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 .......... _x3 = 'foo' -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 .......... _x4 = 'looloo' -12:34:56.78 19 | assert not original_tracer_active() -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/generator_expression.txt b/tests/sample_results/pypy2.7/generator_expression.txt deleted file mode 100644 index 8c4fa77..0000000 --- a/tests/sample_results/pypy2.7/generator_expression.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 >>> Start generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 1 - 12:34:56.78 <<< Yield value from : 2 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Yield value from : 4 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Return value from : None -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) -12:34:56.78 <<< Return value from main: [2, 4] \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/indentation.txt b/tests/sample_results/pypy2.7/indentation.txt deleted file mode 100644 index 401816e..0000000 --- a/tests/sample_results/pypy2.7/indentation.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | f2() - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 9 - 12:34:56.78 9 | def f2(): - 12:34:56.78 10 | f3() - 12:34:56.78 >>> Call to f4 in File "/path/to_file.py", line 18 - 12:34:56.78 18 | def f4(): - 12:34:56.78 19 | f5() - 12:34:56.78 >>> Call to f5 in File "/path/to_file.py", line 22 - 12:34:56.78 22 | def f5(): - 12:34:56.78 23 | pass - 12:34:56.78 <<< Return value from f5: None - 12:34:56.78 19 | f5() - 12:34:56.78 <<< Return value from f4: None - 12:34:56.78 10 | f3() - 12:34:56.78 <<< Return value from f2: None -12:34:56.78 6 | f2() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/install_enabled.txt b/tests/sample_results/pypy2.7/install_enabled.txt deleted file mode 100644 index 4243932..0000000 --- a/tests/sample_results/pypy2.7/install_enabled.txt +++ /dev/null @@ -1,10 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 1 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 2 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 3 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 6 \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/lambda_function.txt b/tests/sample_results/pypy2.7/lambda_function.txt deleted file mode 100644 index 32f216c..0000000 --- a/tests/sample_results/pypy2.7/lambda_function.txt +++ /dev/null @@ -1,5 +0,0 @@ -12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 5 -12:34:56.78 .......... x = 3 -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 <<< Return value from main..: 9 \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/long_variable.txt b/tests/sample_results/pypy2.7/long_variable.txt deleted file mode 100644 index 7514952..0000000 --- a/tests/sample_results/pypy2.7/long_variable.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | foo = list(range(1000)) -12:34:56.78 .......... foo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(foo) = 1000 -12:34:56.78 7 | return foo -12:34:56.78 <<< Return value from main: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/method_and_prefix.txt b/tests/sample_results/pypy2.7/method_and_prefix.txt deleted file mode 100644 index f640c90..0000000 --- a/tests/sample_results/pypy2.7/method_and_prefix.txt +++ /dev/null @@ -1,9 +0,0 @@ -ZZZ 12:34:56.78 >>> Call to Baz.square in File "/path/to_file.py", line 11 -ZZZ 12:34:56.78 .......... self = -ZZZ 12:34:56.78 .......... self.x = 2 -ZZZ 12:34:56.78 11 | def square(self): -ZZZ 12:34:56.78 12 | foo = 7 -ZZZ 12:34:56.78 13 | self.x **= 2 -ZZZ 12:34:56.78 .............. self.x = 4 -ZZZ 12:34:56.78 14 | return self -ZZZ 12:34:56.78 <<< Return value from Baz.square: \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/multiline.txt b/tests/sample_results/pypy2.7/multiline.txt deleted file mode 100644 index 020f741..0000000 --- a/tests/sample_results/pypy2.7/multiline.txt +++ /dev/null @@ -1,48 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = ( -12:34:56.78 7 | [ -12:34:56.78 8 | bar(), # 1 -12:34:56.78 9 | bar(), # 2 -12:34:56.78 .......... x = [None, None] -12:34:56.78 .......... len(x) = 2 -12:34:56.78 13 | with context( -12:34:56.78 14 | bar(), # 1 -12:34:56.78 15 | bar(), # 2 -12:34:56.78 17 | try: -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 .................. _ = None -12:34:56.78 24 | while bar( -12:34:56.78 25 | bar(), # 1 -12:34:56.78 26 | bar(), # 2 -12:34:56.78 30 | bar() -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 32 | bar() -12:34:56.78 33 | raise ValueError -12:34:56.78 !!! ValueError -12:34:56.78 34 | except ( -12:34:56.78 35 | ValueError, -12:34:56.78 36 | TypeError, -12:34:56.78 38 | pass -12:34:56.78 40 | bar( -12:34:56.78 42 | bar(), # 1 -12:34:56.78 43 | bar(), # 2 -12:34:56.78 47 | with context( -12:34:56.78 48 | bar(), # 1 -12:34:56.78 49 | bar(), # 2 -12:34:56.78 51 | if bar( -12:34:56.78 52 | bar(), # 1 -12:34:56.78 53 | bar(), # 2 -12:34:56.78 56 | elif [ -12:34:56.78 57 | bar( -12:34:56.78 58 | bar(), # 1 -12:34:56.78 59 | bar(), # 2 -12:34:56.78 62 | pass -12:34:56.78 64 | return x -12:34:56.78 <<< Return value from main: [None, None] \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/no_columns.txt b/tests/sample_results/pypy2.7/no_columns.txt deleted file mode 100644 index 4cc92cd..0000000 --- a/tests/sample_results/pypy2.7/no_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ ->>> Call to main in File "/path/to_file.py", line 7 - 7 | def main(): - 8 | x = 1 - 9 | y = x + 2 - .......... y = 3 - <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/pp.txt b/tests/sample_results/pypy2.7/pp.txt deleted file mode 100644 index e79df44..0000000 --- a/tests/sample_results/pypy2.7/pp.txt +++ /dev/null @@ -1,151 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | pp(pp(x + 1) + max(*pp(y + 2, y + 3))) -12:34:56.78 LOG: -12:34:56.78 .... x + 1 = 2 -12:34:56.78 LOG: -12:34:56.78 .... y + 2 = 4 -12:34:56.78 .... y + 3 = 5 -12:34:56.78 LOG: -12:34:56.78 .... pp(x + 1) + max(*pp(y + 2, y + 3)) = 7 -12:34:56.78 9 | assert pp.deep(lambda: x + 1 + max(y + 2, y + 3)) == 7 -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ........ x + 1 = 2 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ max(y + 2, y + 3) = 5 -12:34:56.78 .... x + 1 + max(y + 2, y + 3) = 7 -12:34:56.78 10 | lst = list(range(30)) -12:34:56.78 .......... lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ..., 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .......... len(lst) = 30 -12:34:56.78 11 | pp.deep(lambda: list( -12:34:56.78 LOG: -12:34:56.78 ............ list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] = at 0xABC> -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 4 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [4, 5] -12:34:56.78 .................... a + b for a in [1, 2] = at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 6 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [5, 6] -12:34:56.78 ........ list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) = [[4, 5], [5, 6]] -12:34:56.78 ........ lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .... list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) + lst = [[4, 5], -12:34:56.78 [5, 6], -12:34:56.78 0, -12:34:56.78 1, -12:34:56.78 2, -12:34:56.78 3, -12:34:56.78 4, -12:34:56.78 5, -12:34:56.78 6, -12:34:56.78 7, -12:34:56.78 8, -12:34:56.78 9, -12:34:56.78 10, -12:34:56.78 11, -12:34:56.78 12, -12:34:56.78 13, -12:34:56.78 14, -12:34:56.78 15, -12:34:56.78 16, -12:34:56.78 17, -12:34:56.78 18, -12:34:56.78 19, -12:34:56.78 20, -12:34:56.78 21, -12:34:56.78 22, -12:34:56.78 23, -12:34:56.78 24, -12:34:56.78 25, -12:34:56.78 26, -12:34:56.78 27, -12:34:56.78 28, -12:34:56.78 29] -12:34:56.78 15 | pp(dict.fromkeys(range(30), 4)) -12:34:56.78 LOG: -12:34:56.78 .... dict.fromkeys(range(30), 4) = {0: 4, -12:34:56.78 1: 4, -12:34:56.78 2: 4, -12:34:56.78 3: 4, -12:34:56.78 4: 4, -12:34:56.78 5: 4, -12:34:56.78 6: 4, -12:34:56.78 7: 4, -12:34:56.78 8: 4, -12:34:56.78 9: 4, -12:34:56.78 10: 4, -12:34:56.78 11: 4, -12:34:56.78 12: 4, -12:34:56.78 13: 4, -12:34:56.78 14: 4, -12:34:56.78 15: 4, -12:34:56.78 16: 4, -12:34:56.78 17: 4, -12:34:56.78 18: 4, -12:34:56.78 19: 4, -12:34:56.78 20: 4, -12:34:56.78 21: 4, -12:34:56.78 22: 4, -12:34:56.78 23: 4, -12:34:56.78 24: 4, -12:34:56.78 25: 4, -12:34:56.78 26: 4, -12:34:56.78 27: 4, -12:34:56.78 28: 4, -12:34:56.78 29: 4} -12:34:56.78 16 | pp.deep(lambda: BadRepr() and 1) -12:34:56.78 LOG: -12:34:56.78 ............ BadRepr = -12:34:56.78 ........ BadRepr() = -12:34:56.78 .... BadRepr() and 1 = 1 -12:34:56.78 17 | pp.deep(lambda: 1 / 2) -12:34:56.78 LOG: -12:34:56.78 .... 1 / 2 = 0.5 -12:34:56.78 19 | try: -12:34:56.78 20 | pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 LOG: -12:34:56.78 ............ y = 2 -12:34:56.78 ........ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ (y + 3) / 0 = !!! ZeroDivisionError! -12:34:56.78 !!! ZeroDivisionError: division by zero -12:34:56.78 !!! When calling: pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 21 | except ZeroDivisionError: -12:34:56.78 22 | pass -12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) -12:34:56.78 LOG: -12:34:56.78 ........ caller = -12:34:56.78 ........ lambda: 2 * 3 = at 0xABC> -12:34:56.78 ............ 2 * 3 = 6 -12:34:56.78 .... caller(lambda: 2 * 3) = at 0xABC> -12:34:56.78 .......... f = at 0xABC> -12:34:56.78 27 | f() - 12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 26 - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 <<< Return value from main..: 6 -12:34:56.78 27 | f() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/pp_custom_pformat.txt b/tests/sample_results/pypy2.7/pp_custom_pformat.txt deleted file mode 100644 index 0f9ed45..0000000 --- a/tests/sample_results/pypy2.7/pp_custom_pformat.txt +++ /dev/null @@ -1,51 +0,0 @@ -Test with custom pformat -12:34:56.78 LOG: -12:34:56.78 .... x = custom(1) -12:34:56.78 LOG: -12:34:56.78 .... pp(x) + y = custom(3) -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ............ y = 2 -12:34:56.78 ........ x + y = 3 -12:34:56.78 ........ y = 2 -12:34:56.78 .... (x + y) + y = custom(5) -12:34:56.78 >>> Enter with block in test_misc in File "/path/to_file.py", line 11 -12:34:56.78 .......... x = 1 -12:34:56.78 .......... y = 2 -12:34:56.78 12 | y = 3 # custom pformat is not used here -12:34:56.78 .............. y = 3 -12:34:56.78 <<< Exit with block in test_misc -12:34:56.78 LOG: -12:34:56.78 .... d = custom(['a long key to be pretty printed prettily', ['prettyprinter prints datetime with keyword arguments:', datetime.datetime(1970, 1, 1, 0, 0, 42)]]) - -Test without prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = ['a long key to be pretty printed prettily', -12:34:56.78 ['prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42)]] - -Test with prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = ['a long key to be pretty printed prettily', -12:34:56.78 ['prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42)]] - -Test without prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42), -12:34:56.78 ], -12:34:56.78 ] - -Test with prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42), -12:34:56.78 ], -12:34:56.78 ] \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/pp_exception.txt b/tests/sample_results/pypy2.7/pp_exception.txt deleted file mode 100644 index 025dfca..0000000 --- a/tests/sample_results/pypy2.7/pp_exception.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | try: -12:34:56.78 9 | pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 LOG: -12:34:56.78 ................ x = 1 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ x + y = 3 -12:34:56.78 ................ bad = -12:34:56.78 ............ bad() = !!! TypeError! -12:34:56.78 !!! TypeError: bad -12:34:56.78 !!! When calling: pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 10 | except: -12:34:56.78 11 | sample_traceback() -Traceback (most recent call last): - pp.deep(lambda: x + y + bad() + 2) - return PPEvent(self, [arg], deep=True).returns - self.returns = self.deep_pp(call_arg.body, frame) - return eval(code, frame.f_globals, frame.f_locals) - pp.deep(lambda: x + y + bad() + 2) - raise TypeError('bad') -TypeError: bad -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/recursion.txt b/tests/sample_results/pypy2.7/recursion.txt deleted file mode 100644 index 05e77db..0000000 --- a/tests/sample_results/pypy2.7/recursion.txt +++ /dev/null @@ -1,45 +0,0 @@ -12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 4 -12:34:56.78 5 | def factorial(x): -12:34:56.78 6 | if x <= 1: -12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 3 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 2 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 1 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 7 | return 1 - 12:34:56.78 <<< Return value from factorial: 1 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 2 - 12:34:56.78 ...... b = 1 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 2 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 2 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 3 - 12:34:56.78 ...... b = 2 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 6 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 6 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 4 - 12:34:56.78 ...... b = 6 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 24 -12:34:56.78 8 | return mul(x, factorial(x - 1)) -12:34:56.78 <<< Return value from factorial: 24 \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/threads.txt b/tests/sample_results/pypy2.7/threads.txt deleted file mode 100644 index 496e974..0000000 --- a/tests/sample_results/pypy2.7/threads.txt +++ /dev/null @@ -1,12 +0,0 @@ -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 -longername >>> Call to foo in File "/path/to_file.py", line 9 -longername 9 | def foo(): -longername 10 | return 1 -longername <<< Return value from foo: 1 -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/unavailable_source.txt b/tests/sample_results/pypy2.7/unavailable_source.txt deleted file mode 100644 index af9a4d2..0000000 --- a/tests/sample_results/pypy2.7/unavailable_source.txt +++ /dev/null @@ -1,8 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78 4 | SOURCE IS UNAVAILABLE -12:34:56.78 5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/var_order.txt b/tests/sample_results/pypy2.7/var_order.txt deleted file mode 100644 index f23ca83..0000000 --- a/tests/sample_results/pypy2.7/var_order.txt +++ /dev/null @@ -1,14 +0,0 @@ -12:34:56.78 >>> Call to f in File "/path/to_file.py", line 5 -12:34:56.78 ...... _one = 1 -12:34:56.78 ...... _two = 2 -12:34:56.78 ...... _three = 3 -12:34:56.78 ...... _four = 4 -12:34:56.78 5 | def f(_one, _two, _three, _four): -12:34:56.78 6 | _five = None -12:34:56.78 7 | _six = None -12:34:56.78 8 | _seven = None -12:34:56.78 10 | _five, _six, _seven = 5, 6, 7 -12:34:56.78 .......... _five = 5 -12:34:56.78 .......... _six = 6 -12:34:56.78 .......... _seven = 7 -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/variables_classes.txt b/tests/sample_results/pypy2.7/variables_classes.txt deleted file mode 100644 index d7ad679..0000000 --- a/tests/sample_results/pypy2.7/variables_classes.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 22 | _s = WithSlots() -12:34:56.78 .......... _s = -12:34:56.78 .......... _s.x = 3 -12:34:56.78 .......... _s.y = 4 -12:34:56.78 23 | _lst = list(range(1000)) -12:34:56.78 .......... _lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(_lst) = 1000 -12:34:56.78 .......... _lst[997] = 997 -12:34:56.78 .......... _lst[998] = 998 -12:34:56.78 .......... _lst[999] = 999 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/watch.txt b/tests/sample_results/pypy2.7/watch.txt deleted file mode 100644 index 1c3a9f0..0000000 --- a/tests/sample_results/pypy2.7/watch.txt +++ /dev/null @@ -1,18 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 17 -12:34:56.78 17 | def main(): -12:34:56.78 18 | foo = Foo() -12:34:56.78 .......... foo = -12:34:56.78 .......... foo.x = 2 -12:34:56.78 .......... len(foo.__dict__["x"] * "abc") = 6 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 0 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 4 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 12 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 1 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 16 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 48 -12:34:56.78 19 | for i in range(2): -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/watch_explode.txt b/tests/sample_results/pypy2.7/watch_explode.txt deleted file mode 100644 index 2976dc4..0000000 --- a/tests/sample_results/pypy2.7/watch_explode.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 .......... _d['c'] = 'ignore' -12:34:56.78 15 | _point = Foo(x=3, y=4) -12:34:56.78 .......... _point = -12:34:56.78 .......... _point.x = 3 -12:34:56.78 .......... _point.y = 4 -12:34:56.78 16 | lst = [7, 8, 9] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 .......... (lst + [])[0] = 7 -12:34:56.78 .......... (lst + [])[1] = 8 -12:34:56.78 .......... (lst + [])[2] = 9 -12:34:56.78 .......... lst + [] = [7, 8, 9] -12:34:56.78 .......... len(lst + []) = 3 -12:34:56.78 17 | lst.append(10) -12:34:56.78 .......... lst = [7, 8, 9, 10] -12:34:56.78 .......... len(lst) = 4 -12:34:56.78 .......... (lst + [])[3] = 10 -12:34:56.78 .......... lst + [] = [7, 8, 9, 10] -12:34:56.78 .......... len(lst + []) = 4 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/watch_extras.txt b/tests/sample_results/pypy2.7/watch_extras.txt deleted file mode 100644 index 67711cf..0000000 --- a/tests/sample_results/pypy2.7/watch_extras.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... len(y) = 1 -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/with_block.txt b/tests/sample_results/pypy2.7/with_block.txt deleted file mode 100644 index fd46d74..0000000 --- a/tests/sample_results/pypy2.7/with_block.txt +++ /dev/null @@ -1,49 +0,0 @@ -12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 -12:34:56.78 .......... x = 2 -12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 - 12:34:56.78 .......... x = 1 - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Call to bar1 in File "/path/to_file.py", line 26 - 12:34:56.78 ...... _x = 0 - 12:34:56.78 26 | def bar1(_x): - 12:34:56.78 27 | qux() - 12:34:56.78 <<< Return value from bar1: None - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None - 12:34:56.78 18 | bar2(x) - 12:34:56.78 19 | qux() - 12:34:56.78 <<< Exit with block in foo - 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 - 12:34:56.78 ...... _x = 9 - 12:34:56.78 36 | def bar3(_x): - 12:34:56.78 37 | qux() - 12:34:56.78 <<< Return value from bar3: None -12:34:56.78 17 | foo(x - 1) -12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None -12:34:56.78 18 | bar2(x) -12:34:56.78 19 | qux() -12:34:56.78 <<< Exit with block in foo -12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 -12:34:56.78 ...... _x = 9 -12:34:56.78 36 | def bar3(_x): -12:34:56.78 37 | qux() -12:34:56.78 <<< Return value from bar3: None -12:34:56.78 >>> Enter with block in gen in File "/path/to_file.py", line 47 -12:34:56.78 .................. i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Yield value from gen: 1 -12:34:56.78 >>> Re-enter generator gen in File "/path/to_file.py", line 48 -12:34:56.78 ...................... i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Exit with block in gen \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/with_block_depth.txt b/tests/sample_results/pypy2.7/with_block_depth.txt deleted file mode 100644 index 7063835..0000000 --- a/tests/sample_results/pypy2.7/with_block_depth.txt +++ /dev/null @@ -1,20 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 21 -12:34:56.78 22 | result1 = f2(5) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 5 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 5 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 .......... result3 = 10 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 10 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 10 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 10 -12:34:56.78 22 | result1 = f2(5) -12:34:56.78 .............. result1 = 10 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/pypy2.7/with_no_args.txt b/tests/sample_results/pypy2.7/with_no_args.txt deleted file mode 100644 index 12f7483..0000000 --- a/tests/sample_results/pypy2.7/with_no_args.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 6 -12:34:56.78 .......... x = 1 -12:34:56.78 7 | result = 2 + 2 -12:34:56.78 .............. result = 4 -12:34:56.78 <<< Exit with block in main -12:34:56.78 LOG: -12:34:56.78 .... x = 1 \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/all_columns.txt b/tests/sample_results/pypy3.5/all_columns.txt deleted file mode 100644 index ad3717c..0000000 --- a/tests/sample_results/pypy3.5/all_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo >>> Call to main..foo in File "/path/to_file.py", line 8 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 8 | def foo(): -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 9 | x = 1 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 10 | y = x + 2 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo .............. y = 3 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo <<< Return value from main..foo: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/cellvars.txt b/tests/sample_results/pypy3.5/cellvars.txt deleted file mode 100644 index b0519ec..0000000 --- a/tests/sample_results/pypy3.5/cellvars.txt +++ /dev/null @@ -1,30 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 16 -12:34:56.78 17 | result1 = f2(42) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 1 - 12:34:56.78 ...... a = 42 - 12:34:56.78 1 | def f2(a): - 12:34:56.78 2 | def f3(a): - 12:34:56.78 12 | return f3(a) - 12:34:56.78 >>> Call to f2..f3 in File "/path/to_file.py", line 2 - 12:34:56.78 .......... a = 42 - 12:34:56.78 2 | def f3(a): - 12:34:56.78 3 | x = 0 - 12:34:56.78 4 | x += 1 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 10 | return f4(a) - 12:34:56.78 >>> Call to f2..f3..f4 in File "/path/to_file.py", line 6 - 12:34:56.78 .............. _a = 42 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 7 | _y = x - 12:34:56.78 .................. _y = 1 - 12:34:56.78 8 | return 42 - 12:34:56.78 <<< Return value from f2..f3..f4: 42 - 12:34:56.78 10 | return f4(a) - 12:34:56.78 <<< Return value from f2..f3: 42 - 12:34:56.78 12 | return f3(a) - 12:34:56.78 <<< Return value from f2: 42 -12:34:56.78 17 | result1 = f2(42) -12:34:56.78 .............. result1 = 42 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/color.txt b/tests/sample_results/pypy3.5/color.txt deleted file mode 100644 index 0deb4a9..0000000 --- a/tests/sample_results/pypy3.5/color.txt +++ /dev/null @@ -1,51 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  18 | or foo)() -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  23 | x + y -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) - 12:34:56.78 List comprehension: - 12:34:56.78  23 | x + y - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/comprehensions.txt b/tests/sample_results/pypy3.5/comprehensions.txt deleted file mode 100644 index 8f061aa..0000000 --- a/tests/sample_results/pypy3.5/comprehensions.txt +++ /dev/null @@ -1,95 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 -12:34:56.78 16 | def main(): -12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ...} -12:34:56.78 17 | str({x for x in list(range(100))}) -12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, ...} -12:34:56.78 18 | str({x: x for x in list(range(100))}) -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {0, 1, 2} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 1 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {1, 2, 3} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 2 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {2, 3, 4} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0, 1, 2 - 12:34:56.78 Result: {0: {0, 1, 2}, 1: {1, 2, 3}, 2: {2, 3, 4}} -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 1 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 1 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 2 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 4 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {1, 4} -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) -12:34:56.78 22 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 - 12:34:56.78 11 | def bar(): - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 <<< Return value from bar: None -12:34:56.78 22 | bar() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/confusing_decorator_lines.txt b/tests/sample_results/pypy3.5/confusing_decorator_lines.txt deleted file mode 100644 index 914fd36..0000000 --- a/tests/sample_results/pypy3.5/confusing_decorator_lines.txt +++ /dev/null @@ -1,4 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | str(3) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/decorator_exception.txt b/tests/sample_results/pypy3.5/decorator_exception.txt deleted file mode 100644 index cda77d9..0000000 --- a/tests/sample_results/pypy3.5/decorator_exception.txt +++ /dev/null @@ -1,9 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | try: -12:34:56.78 7 | @int -12:34:56.78 !!! TypeError: int() argument must be a string, a bytes-like object or a number, not 'function' -12:34:56.78 !!! When calling decorator: @int -12:34:56.78 10 | except: -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/depth.txt b/tests/sample_results/pypy3.5/depth.txt deleted file mode 100644 index 9260538..0000000 --- a/tests/sample_results/pypy3.5/depth.txt +++ /dev/null @@ -1,24 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | result1 = f2(8) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 8 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 8 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 LOG: - 12:34:56.78 .... x4 * 2 = 16 - 12:34:56.78 .......... result3 = 16 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 16 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 16 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 16 -12:34:56.78 21 | result1 = f2(8) -12:34:56.78 .......... result1 = 16 -12:34:56.78 22 | return result1 -12:34:56.78 <<< Return value from main: 16 \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/django_sample.txt b/tests/sample_results/pypy3.5/django_sample.txt deleted file mode 100644 index 22f50d0..0000000 --- a/tests/sample_results/pypy3.5/django_sample.txt +++ /dev/null @@ -1,13 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.fake_django_settings' -12:34:56.78 7 | import django -12:34:56.78 .......... django = -12:34:56.78 9 | django.setup() -12:34:56.78 10 | from django.contrib.contenttypes.models import ContentType -12:34:56.78 .......... ContentType = -12:34:56.78 11 | queryset = ContentType.objects.all() -12:34:56.78 .......... queryset = -12:34:56.78 12 | lst = [1, 2, 3] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/enabled2.txt b/tests/sample_results/pypy3.5/enabled2.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/sample_results/pypy3.5/end_finally.txt b/tests/sample_results/pypy3.5/end_finally.txt deleted file mode 100644 index afb39f2..0000000 --- a/tests/sample_results/pypy3.5/end_finally.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 0 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 9 | return -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from foo: None -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 1 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 8 | raise TypeError('bad') -12:34:56.78 !!! TypeError: bad -12:34:56.78 11 | pass -12:34:56.78 ??? Call either returned None or ended by exception \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/exception.txt b/tests/sample_results/pypy3.5/exception.txt deleted file mode 100644 index abf9c1b..0000000 --- a/tests/sample_results/pypy3.5/exception.txt +++ /dev/null @@ -1,77 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 19 -12:34:56.78 19 | def main(): -12:34:56.78 20 | try: -12:34:56.78 21 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 10 - 12:34:56.78 ...... _ = () - 12:34:56.78 10 | def bar(*_): - 12:34:56.78 11 | try: - 12:34:56.78 12 | str(foo()) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 - 12:34:56.78 4 | def foo(): - 12:34:56.78 5 | raise TypeError(''' - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! Call ended by exception - 12:34:56.78 12 | str(foo()) - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! When calling: foo() - 12:34:56.78 13 | except Exception: - 12:34:56.78 14 | str(1) - 12:34:56.78 15 | raise - 12:34:56.78 !!! Call ended by exception -12:34:56.78 21 | bar() -12:34:56.78 !!! TypeError: -12:34:56.78 !!! very -12:34:56.78 !!! bad -12:34:56.78 !!! When calling: bar() -12:34:56.78 22 | except: -12:34:56.78 23 | pass -12:34:56.78 25 | try: -12:34:56.78 26 | bob( -12:34:56.78 27 | 1, -12:34:56.78 28 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: bob( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 30 | except: -12:34:56.78 31 | pass -12:34:56.78 33 | try: -12:34:56.78 34 | (None -12:34:56.78 35 | or bob)( -12:34:56.78 36 | 1, -12:34:56.78 37 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: (None -12:34:56.78 or bob)( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 39 | except: -12:34:56.78 40 | pass -12:34:56.78 42 | x = [[[2]]] -12:34:56.78 .......... len(x) = 1 -12:34:56.78 44 | try: -12:34:56.78 45 | str(x[1][0][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[1] -12:34:56.78 46 | except: -12:34:56.78 47 | pass -12:34:56.78 49 | try: -12:34:56.78 50 | str(x[0][1][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][1] -12:34:56.78 51 | except: -12:34:56.78 52 | pass -12:34:56.78 54 | try: -12:34:56.78 55 | str(x[0][0][1]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][0][1] -12:34:56.78 56 | except: -12:34:56.78 57 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/generator.txt b/tests/sample_results/pypy3.5/generator.txt deleted file mode 100644 index 542d83d..0000000 --- a/tests/sample_results/pypy3.5/generator.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Start generator f in File "/path/to_file.py", line 12 -12:34:56.78 ...... x1 = 0 -12:34:56.78 12 | def f(x1): -12:34:56.78 13 | assert not original_tracer_active() -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 <<< Yield value from f: 0 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 14 -12:34:56.78 .......... x1 = 0 -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 15 | assert not original_tracer_active() -12:34:56.78 16 | _x3 = 'foo' -12:34:56.78 17 | assert not original_tracer_active() -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 <<< Yield value from f: 2 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 18 -12:34:56.78 .......... x1 = 0 -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 .......... _x3 = 'foo' -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 .......... _x4 = 'looloo' -12:34:56.78 19 | assert not original_tracer_active() -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/generator_expression.txt b/tests/sample_results/pypy3.5/generator_expression.txt deleted file mode 100644 index 8c4fa77..0000000 --- a/tests/sample_results/pypy3.5/generator_expression.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 >>> Start generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 1 - 12:34:56.78 <<< Yield value from : 2 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Yield value from : 4 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Return value from : None -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) -12:34:56.78 <<< Return value from main: [2, 4] \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/indentation.txt b/tests/sample_results/pypy3.5/indentation.txt deleted file mode 100644 index 401816e..0000000 --- a/tests/sample_results/pypy3.5/indentation.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | f2() - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 9 - 12:34:56.78 9 | def f2(): - 12:34:56.78 10 | f3() - 12:34:56.78 >>> Call to f4 in File "/path/to_file.py", line 18 - 12:34:56.78 18 | def f4(): - 12:34:56.78 19 | f5() - 12:34:56.78 >>> Call to f5 in File "/path/to_file.py", line 22 - 12:34:56.78 22 | def f5(): - 12:34:56.78 23 | pass - 12:34:56.78 <<< Return value from f5: None - 12:34:56.78 19 | f5() - 12:34:56.78 <<< Return value from f4: None - 12:34:56.78 10 | f3() - 12:34:56.78 <<< Return value from f2: None -12:34:56.78 6 | f2() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/install_enabled.txt b/tests/sample_results/pypy3.5/install_enabled.txt deleted file mode 100644 index 4243932..0000000 --- a/tests/sample_results/pypy3.5/install_enabled.txt +++ /dev/null @@ -1,10 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 1 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 2 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 3 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 6 \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/lambda_function.txt b/tests/sample_results/pypy3.5/lambda_function.txt deleted file mode 100644 index 32f216c..0000000 --- a/tests/sample_results/pypy3.5/lambda_function.txt +++ /dev/null @@ -1,5 +0,0 @@ -12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 5 -12:34:56.78 .......... x = 3 -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 <<< Return value from main..: 9 \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/long_variable.txt b/tests/sample_results/pypy3.5/long_variable.txt deleted file mode 100644 index 7514952..0000000 --- a/tests/sample_results/pypy3.5/long_variable.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | foo = list(range(1000)) -12:34:56.78 .......... foo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(foo) = 1000 -12:34:56.78 7 | return foo -12:34:56.78 <<< Return value from main: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/method_and_prefix.txt b/tests/sample_results/pypy3.5/method_and_prefix.txt deleted file mode 100644 index f640c90..0000000 --- a/tests/sample_results/pypy3.5/method_and_prefix.txt +++ /dev/null @@ -1,9 +0,0 @@ -ZZZ 12:34:56.78 >>> Call to Baz.square in File "/path/to_file.py", line 11 -ZZZ 12:34:56.78 .......... self = -ZZZ 12:34:56.78 .......... self.x = 2 -ZZZ 12:34:56.78 11 | def square(self): -ZZZ 12:34:56.78 12 | foo = 7 -ZZZ 12:34:56.78 13 | self.x **= 2 -ZZZ 12:34:56.78 .............. self.x = 4 -ZZZ 12:34:56.78 14 | return self -ZZZ 12:34:56.78 <<< Return value from Baz.square: \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/multiline.txt b/tests/sample_results/pypy3.5/multiline.txt deleted file mode 100644 index 020f741..0000000 --- a/tests/sample_results/pypy3.5/multiline.txt +++ /dev/null @@ -1,48 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = ( -12:34:56.78 7 | [ -12:34:56.78 8 | bar(), # 1 -12:34:56.78 9 | bar(), # 2 -12:34:56.78 .......... x = [None, None] -12:34:56.78 .......... len(x) = 2 -12:34:56.78 13 | with context( -12:34:56.78 14 | bar(), # 1 -12:34:56.78 15 | bar(), # 2 -12:34:56.78 17 | try: -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 .................. _ = None -12:34:56.78 24 | while bar( -12:34:56.78 25 | bar(), # 1 -12:34:56.78 26 | bar(), # 2 -12:34:56.78 30 | bar() -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 32 | bar() -12:34:56.78 33 | raise ValueError -12:34:56.78 !!! ValueError -12:34:56.78 34 | except ( -12:34:56.78 35 | ValueError, -12:34:56.78 36 | TypeError, -12:34:56.78 38 | pass -12:34:56.78 40 | bar( -12:34:56.78 42 | bar(), # 1 -12:34:56.78 43 | bar(), # 2 -12:34:56.78 47 | with context( -12:34:56.78 48 | bar(), # 1 -12:34:56.78 49 | bar(), # 2 -12:34:56.78 51 | if bar( -12:34:56.78 52 | bar(), # 1 -12:34:56.78 53 | bar(), # 2 -12:34:56.78 56 | elif [ -12:34:56.78 57 | bar( -12:34:56.78 58 | bar(), # 1 -12:34:56.78 59 | bar(), # 2 -12:34:56.78 62 | pass -12:34:56.78 64 | return x -12:34:56.78 <<< Return value from main: [None, None] \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/no_columns.txt b/tests/sample_results/pypy3.5/no_columns.txt deleted file mode 100644 index 4cc92cd..0000000 --- a/tests/sample_results/pypy3.5/no_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ ->>> Call to main in File "/path/to_file.py", line 7 - 7 | def main(): - 8 | x = 1 - 9 | y = x + 2 - .......... y = 3 - <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/pp.txt b/tests/sample_results/pypy3.5/pp.txt deleted file mode 100644 index 21147ce..0000000 --- a/tests/sample_results/pypy3.5/pp.txt +++ /dev/null @@ -1,151 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | pp(pp(x + 1) + max(*pp(y + 2, y + 3))) -12:34:56.78 LOG: -12:34:56.78 .... x + 1 = 2 -12:34:56.78 LOG: -12:34:56.78 .... y + 2 = 4 -12:34:56.78 .... y + 3 = 5 -12:34:56.78 LOG: -12:34:56.78 .... pp(x + 1) + max(*pp(y + 2, y + 3)) = 7 -12:34:56.78 9 | assert pp.deep(lambda: x + 1 + max(y + 2, y + 3)) == 7 -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ........ x + 1 = 2 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ max(y + 2, y + 3) = 5 -12:34:56.78 .... x + 1 + max(y + 2, y + 3) = 7 -12:34:56.78 10 | lst = list(range(30)) -12:34:56.78 .......... lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ..., 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .......... len(lst) = 30 -12:34:56.78 11 | pp.deep(lambda: list( -12:34:56.78 LOG: -12:34:56.78 ............ list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] = at 0xABC> -12:34:56.78 .................... a + b for a in [1, 2] = .. at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 4 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [4, 5] -12:34:56.78 .................... a + b for a in [1, 2] = .. at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 6 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [5, 6] -12:34:56.78 ........ list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) = [[4, 5], [5, 6]] -12:34:56.78 ........ lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .... list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) + lst = [[4, 5], -12:34:56.78 [5, 6], -12:34:56.78 0, -12:34:56.78 1, -12:34:56.78 2, -12:34:56.78 3, -12:34:56.78 4, -12:34:56.78 5, -12:34:56.78 6, -12:34:56.78 7, -12:34:56.78 8, -12:34:56.78 9, -12:34:56.78 10, -12:34:56.78 11, -12:34:56.78 12, -12:34:56.78 13, -12:34:56.78 14, -12:34:56.78 15, -12:34:56.78 16, -12:34:56.78 17, -12:34:56.78 18, -12:34:56.78 19, -12:34:56.78 20, -12:34:56.78 21, -12:34:56.78 22, -12:34:56.78 23, -12:34:56.78 24, -12:34:56.78 25, -12:34:56.78 26, -12:34:56.78 27, -12:34:56.78 28, -12:34:56.78 29] -12:34:56.78 15 | pp(dict.fromkeys(range(30), 4)) -12:34:56.78 LOG: -12:34:56.78 .... dict.fromkeys(range(30), 4) = {0: 4, -12:34:56.78 1: 4, -12:34:56.78 2: 4, -12:34:56.78 3: 4, -12:34:56.78 4: 4, -12:34:56.78 5: 4, -12:34:56.78 6: 4, -12:34:56.78 7: 4, -12:34:56.78 8: 4, -12:34:56.78 9: 4, -12:34:56.78 10: 4, -12:34:56.78 11: 4, -12:34:56.78 12: 4, -12:34:56.78 13: 4, -12:34:56.78 14: 4, -12:34:56.78 15: 4, -12:34:56.78 16: 4, -12:34:56.78 17: 4, -12:34:56.78 18: 4, -12:34:56.78 19: 4, -12:34:56.78 20: 4, -12:34:56.78 21: 4, -12:34:56.78 22: 4, -12:34:56.78 23: 4, -12:34:56.78 24: 4, -12:34:56.78 25: 4, -12:34:56.78 26: 4, -12:34:56.78 27: 4, -12:34:56.78 28: 4, -12:34:56.78 29: 4} -12:34:56.78 16 | pp.deep(lambda: BadRepr() and 1) -12:34:56.78 LOG: -12:34:56.78 ............ BadRepr = -12:34:56.78 ........ BadRepr() = -12:34:56.78 .... BadRepr() and 1 = 1 -12:34:56.78 17 | pp.deep(lambda: 1 / 2) -12:34:56.78 LOG: -12:34:56.78 .... 1 / 2 = 0.5 -12:34:56.78 19 | try: -12:34:56.78 20 | pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 LOG: -12:34:56.78 ............ y = 2 -12:34:56.78 ........ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ (y + 3) / 0 = !!! ZeroDivisionError! -12:34:56.78 !!! ZeroDivisionError: division by zero -12:34:56.78 !!! When calling: pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 21 | except ZeroDivisionError: -12:34:56.78 22 | pass -12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) -12:34:56.78 LOG: -12:34:56.78 ........ caller = -12:34:56.78 ........ lambda: 2 * 3 = at 0xABC> -12:34:56.78 ............ 2 * 3 = 6 -12:34:56.78 .... caller(lambda: 2 * 3) = at 0xABC> -12:34:56.78 .......... f = at 0xABC> -12:34:56.78 27 | f() - 12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 26 - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 <<< Return value from main..: 6 -12:34:56.78 27 | f() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/pp_exception.txt b/tests/sample_results/pypy3.5/pp_exception.txt deleted file mode 100644 index 025dfca..0000000 --- a/tests/sample_results/pypy3.5/pp_exception.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | try: -12:34:56.78 9 | pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 LOG: -12:34:56.78 ................ x = 1 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ x + y = 3 -12:34:56.78 ................ bad = -12:34:56.78 ............ bad() = !!! TypeError! -12:34:56.78 !!! TypeError: bad -12:34:56.78 !!! When calling: pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 10 | except: -12:34:56.78 11 | sample_traceback() -Traceback (most recent call last): - pp.deep(lambda: x + y + bad() + 2) - return PPEvent(self, [arg], deep=True).returns - self.returns = self.deep_pp(call_arg.body, frame) - return eval(code, frame.f_globals, frame.f_locals) - pp.deep(lambda: x + y + bad() + 2) - raise TypeError('bad') -TypeError: bad -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/recursion.txt b/tests/sample_results/pypy3.5/recursion.txt deleted file mode 100644 index 05e77db..0000000 --- a/tests/sample_results/pypy3.5/recursion.txt +++ /dev/null @@ -1,45 +0,0 @@ -12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 4 -12:34:56.78 5 | def factorial(x): -12:34:56.78 6 | if x <= 1: -12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 3 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 2 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 1 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 7 | return 1 - 12:34:56.78 <<< Return value from factorial: 1 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 2 - 12:34:56.78 ...... b = 1 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 2 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 2 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 3 - 12:34:56.78 ...... b = 2 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 6 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 6 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 4 - 12:34:56.78 ...... b = 6 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 24 -12:34:56.78 8 | return mul(x, factorial(x - 1)) -12:34:56.78 <<< Return value from factorial: 24 \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/threads.txt b/tests/sample_results/pypy3.5/threads.txt deleted file mode 100644 index 496e974..0000000 --- a/tests/sample_results/pypy3.5/threads.txt +++ /dev/null @@ -1,12 +0,0 @@ -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 -longername >>> Call to foo in File "/path/to_file.py", line 9 -longername 9 | def foo(): -longername 10 | return 1 -longername <<< Return value from foo: 1 -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/unavailable_source.txt b/tests/sample_results/pypy3.5/unavailable_source.txt deleted file mode 100644 index af9a4d2..0000000 --- a/tests/sample_results/pypy3.5/unavailable_source.txt +++ /dev/null @@ -1,8 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78 4 | SOURCE IS UNAVAILABLE -12:34:56.78 5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/var_order.txt b/tests/sample_results/pypy3.5/var_order.txt deleted file mode 100644 index f23ca83..0000000 --- a/tests/sample_results/pypy3.5/var_order.txt +++ /dev/null @@ -1,14 +0,0 @@ -12:34:56.78 >>> Call to f in File "/path/to_file.py", line 5 -12:34:56.78 ...... _one = 1 -12:34:56.78 ...... _two = 2 -12:34:56.78 ...... _three = 3 -12:34:56.78 ...... _four = 4 -12:34:56.78 5 | def f(_one, _two, _three, _four): -12:34:56.78 6 | _five = None -12:34:56.78 7 | _six = None -12:34:56.78 8 | _seven = None -12:34:56.78 10 | _five, _six, _seven = 5, 6, 7 -12:34:56.78 .......... _five = 5 -12:34:56.78 .......... _six = 6 -12:34:56.78 .......... _seven = 7 -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/variables_classes.txt b/tests/sample_results/pypy3.5/variables_classes.txt deleted file mode 100644 index d7ad679..0000000 --- a/tests/sample_results/pypy3.5/variables_classes.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 22 | _s = WithSlots() -12:34:56.78 .......... _s = -12:34:56.78 .......... _s.x = 3 -12:34:56.78 .......... _s.y = 4 -12:34:56.78 23 | _lst = list(range(1000)) -12:34:56.78 .......... _lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(_lst) = 1000 -12:34:56.78 .......... _lst[997] = 997 -12:34:56.78 .......... _lst[998] = 998 -12:34:56.78 .......... _lst[999] = 999 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/watch.txt b/tests/sample_results/pypy3.5/watch.txt deleted file mode 100644 index 1c3a9f0..0000000 --- a/tests/sample_results/pypy3.5/watch.txt +++ /dev/null @@ -1,18 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 17 -12:34:56.78 17 | def main(): -12:34:56.78 18 | foo = Foo() -12:34:56.78 .......... foo = -12:34:56.78 .......... foo.x = 2 -12:34:56.78 .......... len(foo.__dict__["x"] * "abc") = 6 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 0 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 4 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 12 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 1 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 16 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 48 -12:34:56.78 19 | for i in range(2): -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/watch_explode.txt b/tests/sample_results/pypy3.5/watch_explode.txt deleted file mode 100644 index 2976dc4..0000000 --- a/tests/sample_results/pypy3.5/watch_explode.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 .......... _d['c'] = 'ignore' -12:34:56.78 15 | _point = Foo(x=3, y=4) -12:34:56.78 .......... _point = -12:34:56.78 .......... _point.x = 3 -12:34:56.78 .......... _point.y = 4 -12:34:56.78 16 | lst = [7, 8, 9] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 .......... (lst + [])[0] = 7 -12:34:56.78 .......... (lst + [])[1] = 8 -12:34:56.78 .......... (lst + [])[2] = 9 -12:34:56.78 .......... lst + [] = [7, 8, 9] -12:34:56.78 .......... len(lst + []) = 3 -12:34:56.78 17 | lst.append(10) -12:34:56.78 .......... lst = [7, 8, 9, 10] -12:34:56.78 .......... len(lst) = 4 -12:34:56.78 .......... (lst + [])[3] = 10 -12:34:56.78 .......... lst + [] = [7, 8, 9, 10] -12:34:56.78 .......... len(lst + []) = 4 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/watch_extras.txt b/tests/sample_results/pypy3.5/watch_extras.txt deleted file mode 100644 index 67711cf..0000000 --- a/tests/sample_results/pypy3.5/watch_extras.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... len(y) = 1 -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/with_block.txt b/tests/sample_results/pypy3.5/with_block.txt deleted file mode 100644 index fd46d74..0000000 --- a/tests/sample_results/pypy3.5/with_block.txt +++ /dev/null @@ -1,49 +0,0 @@ -12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 -12:34:56.78 .......... x = 2 -12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 - 12:34:56.78 .......... x = 1 - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Call to bar1 in File "/path/to_file.py", line 26 - 12:34:56.78 ...... _x = 0 - 12:34:56.78 26 | def bar1(_x): - 12:34:56.78 27 | qux() - 12:34:56.78 <<< Return value from bar1: None - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None - 12:34:56.78 18 | bar2(x) - 12:34:56.78 19 | qux() - 12:34:56.78 <<< Exit with block in foo - 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 - 12:34:56.78 ...... _x = 9 - 12:34:56.78 36 | def bar3(_x): - 12:34:56.78 37 | qux() - 12:34:56.78 <<< Return value from bar3: None -12:34:56.78 17 | foo(x - 1) -12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None -12:34:56.78 18 | bar2(x) -12:34:56.78 19 | qux() -12:34:56.78 <<< Exit with block in foo -12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 -12:34:56.78 ...... _x = 9 -12:34:56.78 36 | def bar3(_x): -12:34:56.78 37 | qux() -12:34:56.78 <<< Return value from bar3: None -12:34:56.78 >>> Enter with block in gen in File "/path/to_file.py", line 47 -12:34:56.78 .................. i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Yield value from gen: 1 -12:34:56.78 >>> Re-enter generator gen in File "/path/to_file.py", line 48 -12:34:56.78 ...................... i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Exit with block in gen \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/with_block_depth.txt b/tests/sample_results/pypy3.5/with_block_depth.txt deleted file mode 100644 index 7063835..0000000 --- a/tests/sample_results/pypy3.5/with_block_depth.txt +++ /dev/null @@ -1,20 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 21 -12:34:56.78 22 | result1 = f2(5) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 5 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 5 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 .......... result3 = 10 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 10 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 10 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 10 -12:34:56.78 22 | result1 = f2(5) -12:34:56.78 .............. result1 = 10 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/pypy3.5/with_no_args.txt b/tests/sample_results/pypy3.5/with_no_args.txt deleted file mode 100644 index 12f7483..0000000 --- a/tests/sample_results/pypy3.5/with_no_args.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 6 -12:34:56.78 .......... x = 1 -12:34:56.78 7 | result = 2 + 2 -12:34:56.78 .............. result = 4 -12:34:56.78 <<< Exit with block in main -12:34:56.78 LOG: -12:34:56.78 .... x = 1 \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/all_columns.txt b/tests/sample_results/pypy3.6/all_columns.txt deleted file mode 100644 index ad3717c..0000000 --- a/tests/sample_results/pypy3.6/all_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo >>> Call to main..foo in File "/path/to_file.py", line 8 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 8 | def foo(): -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 9 | x = 1 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo 10 | y = x + 2 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo .............. y = 3 -12:34:56.78 MainThread 123456789 all_columns.py /path/to_file.py foo main..foo <<< Return value from main..foo: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/cellvars.txt b/tests/sample_results/pypy3.6/cellvars.txt deleted file mode 100644 index b0519ec..0000000 --- a/tests/sample_results/pypy3.6/cellvars.txt +++ /dev/null @@ -1,30 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 16 -12:34:56.78 17 | result1 = f2(42) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 1 - 12:34:56.78 ...... a = 42 - 12:34:56.78 1 | def f2(a): - 12:34:56.78 2 | def f3(a): - 12:34:56.78 12 | return f3(a) - 12:34:56.78 >>> Call to f2..f3 in File "/path/to_file.py", line 2 - 12:34:56.78 .......... a = 42 - 12:34:56.78 2 | def f3(a): - 12:34:56.78 3 | x = 0 - 12:34:56.78 4 | x += 1 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 10 | return f4(a) - 12:34:56.78 >>> Call to f2..f3..f4 in File "/path/to_file.py", line 6 - 12:34:56.78 .............. _a = 42 - 12:34:56.78 .............. x = 1 - 12:34:56.78 6 | def f4(_a): - 12:34:56.78 7 | _y = x - 12:34:56.78 .................. _y = 1 - 12:34:56.78 8 | return 42 - 12:34:56.78 <<< Return value from f2..f3..f4: 42 - 12:34:56.78 10 | return f4(a) - 12:34:56.78 <<< Return value from f2..f3: 42 - 12:34:56.78 12 | return f3(a) - 12:34:56.78 <<< Return value from f2: 42 -12:34:56.78 17 | result1 = f2(42) -12:34:56.78 .............. result1 = 42 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/color.txt b/tests/sample_results/pypy3.6/color.txt deleted file mode 100644 index 0deb4a9..0000000 --- a/tests/sample_results/pypy3.6/color.txt +++ /dev/null @@ -1,51 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 15 -12:34:56.78  15 | def main(): -12:34:56.78  16 | try: -12:34:56.78  17 | (None -12:34:56.78  18 | or foo)() - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 10 - 12:34:56.78  10 | def foo(): - 12:34:56.78  11 | raise TypeError - 12:34:56.78 !!! TypeError - 12:34:56.78 !!! Call ended by exception -12:34:56.78  18 | or foo)() -12:34:56.78 !!! TypeError -12:34:56.78 !!! When calling: (None -12:34:56.78  or foo)() -12:34:56.78  19 | except: -12:34:56.78  20 | pass -12:34:56.78  21 | pp( -12:34:56.78  23 | x + y -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) - 12:34:56.78 List comprehension: - 12:34:56.78  23 | x + y - 12:34:56.78 .......... Iterating over <zip object at 0xABC> - 12:34:56.78 .......... Values of x: 1000, 1001, 1002, 1003, 1004, ..., 1015, 1016, 1017, 1018, 1019 - 12:34:56.78 .......... Values of y: 2000, 2001, 2002, 2003, 2004, ..., 2015, 2016, 2017, 2018, 2019 - 12:34:56.78 Result: [3000, 3002, 3004, 3006, 3008, 3010, 3012, 3014, ..., 3024, 3026, 3028, 3030, 3032, 3034, 3036, 3038] -12:34:56.78 LOG: -12:34:56.78 .... [ -12:34:56.78  x + y -12:34:56.78  for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78  ] = [3000, -12:34:56.78  3002, -12:34:56.78  3004, -12:34:56.78  3006, -12:34:56.78  3008, -12:34:56.78  3010, -12:34:56.78  3012, -12:34:56.78  3014, -12:34:56.78  3016, -12:34:56.78  3018, -12:34:56.78  3020, -12:34:56.78  3022, -12:34:56.78  3024, -12:34:56.78  3026, -12:34:56.78  3028, -12:34:56.78  3030, -12:34:56.78  3032, -12:34:56.78  3034, -12:34:56.78  3036, -12:34:56.78  3038] -12:34:56.78  24 | for x, y in zip(range(1000, 1020), range(2000, 2020)) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/comprehensions.txt b/tests/sample_results/pypy3.6/comprehensions.txt deleted file mode 100644 index 8f061aa..0000000 --- a/tests/sample_results/pypy3.6/comprehensions.txt +++ /dev/null @@ -1,95 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 16 -12:34:56.78 16 | def main(): -12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 17 | str({x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, ...} -12:34:56.78 17 | str({x for x in list(range(100))}) -12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 18 | str({x: x for x in list(range(100))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 0, 1, 2, 3, 4, ..., 95, 96, 97, 98, 99 - 12:34:56.78 Result: {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, ...} -12:34:56.78 18 | str({x: x for x in list(range(100))}) -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Dict comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {0, 1, 2} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 1 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {1, 2, 3} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 Set comprehension: - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 2 - 12:34:56.78 .......... Values of x: 0, 1, 2 - 12:34:56.78 Result: {2, 3, 4} - 12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of y: 0, 1, 2 - 12:34:56.78 Result: {0: {0, 1, 2}, 1: {1, 2, 3}, 2: {2, 3, 4}} -12:34:56.78 19 | str({y: {x + y for x in list(range(3))} for y in list(range(3))}) -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 1 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 1 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 2 - 12:34:56.78 ...... x = 2 - 12:34:56.78 2 | def foo(x): - 12:34:56.78 3 | return x ** 2 - 12:34:56.78 <<< Return value from foo: 4 - 12:34:56.78 20 | str({foo(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {1, 4} -12:34:56.78 20 | str({foo(x) for x in (1, 2)}) -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} -12:34:56.78 21 | str({no_trace(x) for x in (1, 2)}) -12:34:56.78 22 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 11 - 12:34:56.78 11 | def bar(): - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 Set comprehension: - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 >>> Call to no_trace in File "/path/to_file.py", line 6 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 6 | def no_trace(_x): - 12:34:56.78 7 | return 3 - 12:34:56.78 <<< Return value from no_trace: 3 - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... Values of x: 1, 2 - 12:34:56.78 Result: {3} - 12:34:56.78 12 | str({no_trace(x) for x in (1, 2)}) - 12:34:56.78 <<< Return value from bar: None -12:34:56.78 22 | bar() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/confusing_decorator_lines.txt b/tests/sample_results/pypy3.6/confusing_decorator_lines.txt deleted file mode 100644 index 914fd36..0000000 --- a/tests/sample_results/pypy3.6/confusing_decorator_lines.txt +++ /dev/null @@ -1,4 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | str(3) -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/decorator_exception.txt b/tests/sample_results/pypy3.6/decorator_exception.txt deleted file mode 100644 index cda77d9..0000000 --- a/tests/sample_results/pypy3.6/decorator_exception.txt +++ /dev/null @@ -1,9 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | try: -12:34:56.78 7 | @int -12:34:56.78 !!! TypeError: int() argument must be a string, a bytes-like object or a number, not 'function' -12:34:56.78 !!! When calling decorator: @int -12:34:56.78 10 | except: -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/depth.txt b/tests/sample_results/pypy3.6/depth.txt deleted file mode 100644 index 9260538..0000000 --- a/tests/sample_results/pypy3.6/depth.txt +++ /dev/null @@ -1,24 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | result1 = f2(8) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 8 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 8 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 LOG: - 12:34:56.78 .... x4 * 2 = 16 - 12:34:56.78 .......... result3 = 16 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 16 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 16 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 16 -12:34:56.78 21 | result1 = f2(8) -12:34:56.78 .......... result1 = 16 -12:34:56.78 22 | return result1 -12:34:56.78 <<< Return value from main: 16 \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/django_sample.txt b/tests/sample_results/pypy3.6/django_sample.txt deleted file mode 100644 index 22f50d0..0000000 --- a/tests/sample_results/pypy3.6/django_sample.txt +++ /dev/null @@ -1,13 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.fake_django_settings' -12:34:56.78 7 | import django -12:34:56.78 .......... django = -12:34:56.78 9 | django.setup() -12:34:56.78 10 | from django.contrib.contenttypes.models import ContentType -12:34:56.78 .......... ContentType = -12:34:56.78 11 | queryset = ContentType.objects.all() -12:34:56.78 .......... queryset = -12:34:56.78 12 | lst = [1, 2, 3] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/enabled2.txt b/tests/sample_results/pypy3.6/enabled2.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/sample_results/pypy3.6/end_finally.txt b/tests/sample_results/pypy3.6/end_finally.txt deleted file mode 100644 index afb39f2..0000000 --- a/tests/sample_results/pypy3.6/end_finally.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 0 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 9 | return -12:34:56.78 11 | pass -12:34:56.78 <<< Return value from foo: None -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... e = 1 -12:34:56.78 5 | def foo(e): -12:34:56.78 6 | try: -12:34:56.78 7 | if e: -12:34:56.78 8 | raise TypeError('bad') -12:34:56.78 !!! TypeError: bad -12:34:56.78 11 | pass -12:34:56.78 ??? Call either returned None or ended by exception \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/exception.txt b/tests/sample_results/pypy3.6/exception.txt deleted file mode 100644 index abf9c1b..0000000 --- a/tests/sample_results/pypy3.6/exception.txt +++ /dev/null @@ -1,77 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 19 -12:34:56.78 19 | def main(): -12:34:56.78 20 | try: -12:34:56.78 21 | bar() - 12:34:56.78 >>> Call to bar in File "/path/to_file.py", line 10 - 12:34:56.78 ...... _ = () - 12:34:56.78 10 | def bar(*_): - 12:34:56.78 11 | try: - 12:34:56.78 12 | str(foo()) - 12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 - 12:34:56.78 4 | def foo(): - 12:34:56.78 5 | raise TypeError(''' - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! Call ended by exception - 12:34:56.78 12 | str(foo()) - 12:34:56.78 !!! TypeError: - 12:34:56.78 !!! very - 12:34:56.78 !!! bad - 12:34:56.78 !!! When calling: foo() - 12:34:56.78 13 | except Exception: - 12:34:56.78 14 | str(1) - 12:34:56.78 15 | raise - 12:34:56.78 !!! Call ended by exception -12:34:56.78 21 | bar() -12:34:56.78 !!! TypeError: -12:34:56.78 !!! very -12:34:56.78 !!! bad -12:34:56.78 !!! When calling: bar() -12:34:56.78 22 | except: -12:34:56.78 23 | pass -12:34:56.78 25 | try: -12:34:56.78 26 | bob( -12:34:56.78 27 | 1, -12:34:56.78 28 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: bob( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 30 | except: -12:34:56.78 31 | pass -12:34:56.78 33 | try: -12:34:56.78 34 | (None -12:34:56.78 35 | or bob)( -12:34:56.78 36 | 1, -12:34:56.78 37 | 2 -12:34:56.78 !!! TypeError: 'NoneType' object is not callable -12:34:56.78 !!! When calling: (None -12:34:56.78 or bob)( -12:34:56.78 1, -12:34:56.78 2 -12:34:56.78 ) -12:34:56.78 39 | except: -12:34:56.78 40 | pass -12:34:56.78 42 | x = [[[2]]] -12:34:56.78 .......... len(x) = 1 -12:34:56.78 44 | try: -12:34:56.78 45 | str(x[1][0][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[1] -12:34:56.78 46 | except: -12:34:56.78 47 | pass -12:34:56.78 49 | try: -12:34:56.78 50 | str(x[0][1][0]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][1] -12:34:56.78 51 | except: -12:34:56.78 52 | pass -12:34:56.78 54 | try: -12:34:56.78 55 | str(x[0][0][1]) -12:34:56.78 !!! IndexError: list index out of range -12:34:56.78 !!! When subscripting: x[0][0][1] -12:34:56.78 56 | except: -12:34:56.78 57 | pass -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/f_string.txt b/tests/sample_results/pypy3.6/f_string.txt deleted file mode 100644 index 33f4578..0000000 --- a/tests/sample_results/pypy3.6/f_string.txt +++ /dev/null @@ -1,9 +0,0 @@ -12:34:56.78 LOG: -12:34:56.78 ............ = '1' -12:34:56.78 ........ f"b {x} c" = 'b 1 c' -12:34:56.78 .... "a" + f"b {x} c" = 'ab 1 c' -12:34:56.78 LOG: -12:34:56.78 ............ = '1' -12:34:56.78 ............ = '2' -12:34:56.78 ........ f"b {x} {x * 2} c" = 'b 1 2 c' -12:34:56.78 .... "a" + f"b {x} {x * 2} c" = 'ab 1 2 c' \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/generator.txt b/tests/sample_results/pypy3.6/generator.txt deleted file mode 100644 index 542d83d..0000000 --- a/tests/sample_results/pypy3.6/generator.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Start generator f in File "/path/to_file.py", line 12 -12:34:56.78 ...... x1 = 0 -12:34:56.78 12 | def f(x1): -12:34:56.78 13 | assert not original_tracer_active() -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 <<< Yield value from f: 0 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 14 -12:34:56.78 .......... x1 = 0 -12:34:56.78 14 | _x2 = (yield x1) -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 15 | assert not original_tracer_active() -12:34:56.78 16 | _x3 = 'foo' -12:34:56.78 17 | assert not original_tracer_active() -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 <<< Yield value from f: 2 -12:34:56.78 >>> Re-enter generator f in File "/path/to_file.py", line 18 -12:34:56.78 .......... x1 = 0 -12:34:56.78 .......... _x2 = 'blabla' -12:34:56.78 .......... _x3 = 'foo' -12:34:56.78 18 | _x4 = (yield 2) -12:34:56.78 .......... _x4 = 'looloo' -12:34:56.78 19 | assert not original_tracer_active() -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/generator_expression.txt b/tests/sample_results/pypy3.6/generator_expression.txt deleted file mode 100644 index 8c4fa77..0000000 --- a/tests/sample_results/pypy3.6/generator_expression.txt +++ /dev/null @@ -1,23 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 >>> Start generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 1 - 12:34:56.78 <<< Yield value from : 2 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Yield value from : 4 - 12:34:56.78 >>> Re-enter generator in File "/path/to_file.py", line 6 - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 6 | return list(x * 2 for x in [1, 2]) - 12:34:56.78 .......... Iterating over - 12:34:56.78 .......... x = 2 - 12:34:56.78 <<< Return value from : None -12:34:56.78 6 | return list(x * 2 for x in [1, 2]) -12:34:56.78 <<< Return value from main: [2, 4] \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/indentation.txt b/tests/sample_results/pypy3.6/indentation.txt deleted file mode 100644 index 401816e..0000000 --- a/tests/sample_results/pypy3.6/indentation.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | f2() - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 9 - 12:34:56.78 9 | def f2(): - 12:34:56.78 10 | f3() - 12:34:56.78 >>> Call to f4 in File "/path/to_file.py", line 18 - 12:34:56.78 18 | def f4(): - 12:34:56.78 19 | f5() - 12:34:56.78 >>> Call to f5 in File "/path/to_file.py", line 22 - 12:34:56.78 22 | def f5(): - 12:34:56.78 23 | pass - 12:34:56.78 <<< Return value from f5: None - 12:34:56.78 19 | f5() - 12:34:56.78 <<< Return value from f4: None - 12:34:56.78 10 | f3() - 12:34:56.78 <<< Return value from f2: None -12:34:56.78 6 | f2() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/install_enabled.txt b/tests/sample_results/pypy3.6/install_enabled.txt deleted file mode 100644 index 4243932..0000000 --- a/tests/sample_results/pypy3.6/install_enabled.txt +++ /dev/null @@ -1,10 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 1 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 2 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 3 -12:34:56.78 5 | def foo(x): -12:34:56.78 6 | return x * 2 -12:34:56.78 <<< Return value from foo: 6 \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/lambda_function.txt b/tests/sample_results/pypy3.6/lambda_function.txt deleted file mode 100644 index 32f216c..0000000 --- a/tests/sample_results/pypy3.6/lambda_function.txt +++ /dev/null @@ -1,5 +0,0 @@ -12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 5 -12:34:56.78 .......... x = 3 -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 5 | my_function = snoop.snoop()(lambda x: x ** 2) -12:34:56.78 <<< Return value from main..: 9 \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/long_variable.txt b/tests/sample_results/pypy3.6/long_variable.txt deleted file mode 100644 index 7514952..0000000 --- a/tests/sample_results/pypy3.6/long_variable.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | foo = list(range(1000)) -12:34:56.78 .......... foo = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(foo) = 1000 -12:34:56.78 7 | return foo -12:34:56.78 <<< Return value from main: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/method_and_prefix.txt b/tests/sample_results/pypy3.6/method_and_prefix.txt deleted file mode 100644 index f640c90..0000000 --- a/tests/sample_results/pypy3.6/method_and_prefix.txt +++ /dev/null @@ -1,9 +0,0 @@ -ZZZ 12:34:56.78 >>> Call to Baz.square in File "/path/to_file.py", line 11 -ZZZ 12:34:56.78 .......... self = -ZZZ 12:34:56.78 .......... self.x = 2 -ZZZ 12:34:56.78 11 | def square(self): -ZZZ 12:34:56.78 12 | foo = 7 -ZZZ 12:34:56.78 13 | self.x **= 2 -ZZZ 12:34:56.78 .............. self.x = 4 -ZZZ 12:34:56.78 14 | return self -ZZZ 12:34:56.78 <<< Return value from Baz.square: \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/multiline.txt b/tests/sample_results/pypy3.6/multiline.txt deleted file mode 100644 index 020f741..0000000 --- a/tests/sample_results/pypy3.6/multiline.txt +++ /dev/null @@ -1,48 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = ( -12:34:56.78 7 | [ -12:34:56.78 8 | bar(), # 1 -12:34:56.78 9 | bar(), # 2 -12:34:56.78 .......... x = [None, None] -12:34:56.78 .......... len(x) = 2 -12:34:56.78 13 | with context( -12:34:56.78 14 | bar(), # 1 -12:34:56.78 15 | bar(), # 2 -12:34:56.78 17 | try: -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 .................. _ = None -12:34:56.78 24 | while bar( -12:34:56.78 25 | bar(), # 1 -12:34:56.78 26 | bar(), # 2 -12:34:56.78 30 | bar() -12:34:56.78 18 | for _ in [ -12:34:56.78 19 | bar( -12:34:56.78 20 | bar(), # 1 -12:34:56.78 21 | bar(), # 2 -12:34:56.78 32 | bar() -12:34:56.78 33 | raise ValueError -12:34:56.78 !!! ValueError -12:34:56.78 34 | except ( -12:34:56.78 35 | ValueError, -12:34:56.78 36 | TypeError, -12:34:56.78 38 | pass -12:34:56.78 40 | bar( -12:34:56.78 42 | bar(), # 1 -12:34:56.78 43 | bar(), # 2 -12:34:56.78 47 | with context( -12:34:56.78 48 | bar(), # 1 -12:34:56.78 49 | bar(), # 2 -12:34:56.78 51 | if bar( -12:34:56.78 52 | bar(), # 1 -12:34:56.78 53 | bar(), # 2 -12:34:56.78 56 | elif [ -12:34:56.78 57 | bar( -12:34:56.78 58 | bar(), # 1 -12:34:56.78 59 | bar(), # 2 -12:34:56.78 62 | pass -12:34:56.78 64 | return x -12:34:56.78 <<< Return value from main: [None, None] \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/no_columns.txt b/tests/sample_results/pypy3.6/no_columns.txt deleted file mode 100644 index 4cc92cd..0000000 --- a/tests/sample_results/pypy3.6/no_columns.txt +++ /dev/null @@ -1,6 +0,0 @@ ->>> Call to main in File "/path/to_file.py", line 7 - 7 | def main(): - 8 | x = 1 - 9 | y = x + 2 - .......... y = 3 - <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/pp.txt b/tests/sample_results/pypy3.6/pp.txt deleted file mode 100644 index 21147ce..0000000 --- a/tests/sample_results/pypy3.6/pp.txt +++ /dev/null @@ -1,151 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | pp(pp(x + 1) + max(*pp(y + 2, y + 3))) -12:34:56.78 LOG: -12:34:56.78 .... x + 1 = 2 -12:34:56.78 LOG: -12:34:56.78 .... y + 2 = 4 -12:34:56.78 .... y + 3 = 5 -12:34:56.78 LOG: -12:34:56.78 .... pp(x + 1) + max(*pp(y + 2, y + 3)) = 7 -12:34:56.78 9 | assert pp.deep(lambda: x + 1 + max(y + 2, y + 3)) == 7 -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ........ x + 1 = 2 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ max(y + 2, y + 3) = 5 -12:34:56.78 .... x + 1 + max(y + 2, y + 3) = 7 -12:34:56.78 10 | lst = list(range(30)) -12:34:56.78 .......... lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, ..., 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .......... len(lst) = 30 -12:34:56.78 11 | pp.deep(lambda: list( -12:34:56.78 LOG: -12:34:56.78 ............ list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] = at 0xABC> -12:34:56.78 .................... a + b for a in [1, 2] = .. at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 4 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 3 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [4, 5] -12:34:56.78 .................... a + b for a in [1, 2] = .. at 0xABC> -12:34:56.78 ............................ a = 1 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 5 -12:34:56.78 ............................ a = 2 -12:34:56.78 ............................ b = 4 -12:34:56.78 ........................ a + b = 6 -12:34:56.78 ................ list(a + b for a in [1, 2]) = [5, 6] -12:34:56.78 ........ list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) = [[4, 5], [5, 6]] -12:34:56.78 ........ lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] -12:34:56.78 .... list( -12:34:56.78 list(a + b for a in [1, 2]) -12:34:56.78 for b in [3, 4] -12:34:56.78 ) + lst = [[4, 5], -12:34:56.78 [5, 6], -12:34:56.78 0, -12:34:56.78 1, -12:34:56.78 2, -12:34:56.78 3, -12:34:56.78 4, -12:34:56.78 5, -12:34:56.78 6, -12:34:56.78 7, -12:34:56.78 8, -12:34:56.78 9, -12:34:56.78 10, -12:34:56.78 11, -12:34:56.78 12, -12:34:56.78 13, -12:34:56.78 14, -12:34:56.78 15, -12:34:56.78 16, -12:34:56.78 17, -12:34:56.78 18, -12:34:56.78 19, -12:34:56.78 20, -12:34:56.78 21, -12:34:56.78 22, -12:34:56.78 23, -12:34:56.78 24, -12:34:56.78 25, -12:34:56.78 26, -12:34:56.78 27, -12:34:56.78 28, -12:34:56.78 29] -12:34:56.78 15 | pp(dict.fromkeys(range(30), 4)) -12:34:56.78 LOG: -12:34:56.78 .... dict.fromkeys(range(30), 4) = {0: 4, -12:34:56.78 1: 4, -12:34:56.78 2: 4, -12:34:56.78 3: 4, -12:34:56.78 4: 4, -12:34:56.78 5: 4, -12:34:56.78 6: 4, -12:34:56.78 7: 4, -12:34:56.78 8: 4, -12:34:56.78 9: 4, -12:34:56.78 10: 4, -12:34:56.78 11: 4, -12:34:56.78 12: 4, -12:34:56.78 13: 4, -12:34:56.78 14: 4, -12:34:56.78 15: 4, -12:34:56.78 16: 4, -12:34:56.78 17: 4, -12:34:56.78 18: 4, -12:34:56.78 19: 4, -12:34:56.78 20: 4, -12:34:56.78 21: 4, -12:34:56.78 22: 4, -12:34:56.78 23: 4, -12:34:56.78 24: 4, -12:34:56.78 25: 4, -12:34:56.78 26: 4, -12:34:56.78 27: 4, -12:34:56.78 28: 4, -12:34:56.78 29: 4} -12:34:56.78 16 | pp.deep(lambda: BadRepr() and 1) -12:34:56.78 LOG: -12:34:56.78 ............ BadRepr = -12:34:56.78 ........ BadRepr() = -12:34:56.78 .... BadRepr() and 1 = 1 -12:34:56.78 17 | pp.deep(lambda: 1 / 2) -12:34:56.78 LOG: -12:34:56.78 .... 1 / 2 = 0.5 -12:34:56.78 19 | try: -12:34:56.78 20 | pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 LOG: -12:34:56.78 ............ y = 2 -12:34:56.78 ........ y + 2 = 4 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ y + 3 = 5 -12:34:56.78 ........ (y + 3) / 0 = !!! ZeroDivisionError! -12:34:56.78 !!! ZeroDivisionError: division by zero -12:34:56.78 !!! When calling: pp.deep(lambda: max(y + 2, (y + 3) / 0)) -12:34:56.78 21 | except ZeroDivisionError: -12:34:56.78 22 | pass -12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) -12:34:56.78 LOG: -12:34:56.78 ........ caller = -12:34:56.78 ........ lambda: 2 * 3 = at 0xABC> -12:34:56.78 ............ 2 * 3 = 6 -12:34:56.78 .... caller(lambda: 2 * 3) = at 0xABC> -12:34:56.78 .......... f = at 0xABC> -12:34:56.78 27 | f() - 12:34:56.78 >>> Call to main.. in File "/path/to_file.py", line 26 - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 26 | f = pp.deep(lambda: caller(lambda: 2 * 3)) - 12:34:56.78 <<< Return value from main..: 6 -12:34:56.78 27 | f() -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/pp_custom_pformat.txt b/tests/sample_results/pypy3.6/pp_custom_pformat.txt deleted file mode 100644 index adf5470..0000000 --- a/tests/sample_results/pypy3.6/pp_custom_pformat.txt +++ /dev/null @@ -1,69 +0,0 @@ -Test with custom pformat -12:34:56.78 LOG: -12:34:56.78 .... x = custom(1) -12:34:56.78 LOG: -12:34:56.78 .... pp(x) + y = custom(3) -12:34:56.78 LOG: -12:34:56.78 ............ x = 1 -12:34:56.78 ............ y = 2 -12:34:56.78 ........ x + y = 3 -12:34:56.78 ........ y = 2 -12:34:56.78 .... (x + y) + y = custom(5) -12:34:56.78 >>> Enter with block in test_misc in File "/path/to_file.py", line 11 -12:34:56.78 .......... x = 1 -12:34:56.78 .......... y = 2 -12:34:56.78 12 | y = 3 # custom pformat is not used here -12:34:56.78 .............. y = 3 -12:34:56.78 <<< Exit with block in test_misc -12:34:56.78 LOG: -12:34:56.78 .... d = custom(['a long key to be pretty printed prettily', ['prettyprinter prints datetime with keyword arguments:', datetime.datetime(1970, 1, 1, 0, 0, 42)]]) - -Test without prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = ['a long key to be pretty printed prettily', -12:34:56.78 ['prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42)]] - -Test with prettyprinter and without pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime( -12:34:56.78 year=1970, -12:34:56.78 month=1, -12:34:56.78 day=1, -12:34:56.78 hour=0, -12:34:56.78 minute=0, -12:34:56.78 second=42 -12:34:56.78 ) -12:34:56.78 ] -12:34:56.78 ] - -Test without prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime(1970, 1, 1, 0, 0, 42), -12:34:56.78 ], -12:34:56.78 ] - -Test with prettyprinter and with pprintpp -12:34:56.78 LOG: -12:34:56.78 .... d = [ -12:34:56.78 'a long key to be pretty printed prettily', -12:34:56.78 [ -12:34:56.78 'prettyprinter prints datetime with keyword arguments:', -12:34:56.78 datetime.datetime( -12:34:56.78 year=1970, -12:34:56.78 month=1, -12:34:56.78 day=1, -12:34:56.78 hour=0, -12:34:56.78 minute=0, -12:34:56.78 second=42 -12:34:56.78 ) -12:34:56.78 ] -12:34:56.78 ] \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/pp_exception.txt b/tests/sample_results/pypy3.6/pp_exception.txt deleted file mode 100644 index 025dfca..0000000 --- a/tests/sample_results/pypy3.6/pp_exception.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 5 -12:34:56.78 5 | def main(): -12:34:56.78 6 | x = 1 -12:34:56.78 7 | y = 2 -12:34:56.78 8 | try: -12:34:56.78 9 | pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 LOG: -12:34:56.78 ................ x = 1 -12:34:56.78 ................ y = 2 -12:34:56.78 ............ x + y = 3 -12:34:56.78 ................ bad = -12:34:56.78 ............ bad() = !!! TypeError! -12:34:56.78 !!! TypeError: bad -12:34:56.78 !!! When calling: pp.deep(lambda: x + y + bad() + 2) -12:34:56.78 10 | except: -12:34:56.78 11 | sample_traceback() -Traceback (most recent call last): - pp.deep(lambda: x + y + bad() + 2) - return PPEvent(self, [arg], deep=True).returns - self.returns = self.deep_pp(call_arg.body, frame) - return eval(code, frame.f_globals, frame.f_locals) - pp.deep(lambda: x + y + bad() + 2) - raise TypeError('bad') -TypeError: bad -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/recursion.txt b/tests/sample_results/pypy3.6/recursion.txt deleted file mode 100644 index 05e77db..0000000 --- a/tests/sample_results/pypy3.6/recursion.txt +++ /dev/null @@ -1,45 +0,0 @@ -12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 -12:34:56.78 ...... x = 4 -12:34:56.78 5 | def factorial(x): -12:34:56.78 6 | if x <= 1: -12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 3 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 2 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 >>> Call to factorial in File "/path/to_file.py", line 5 - 12:34:56.78 ...... x = 1 - 12:34:56.78 5 | def factorial(x): - 12:34:56.78 6 | if x <= 1: - 12:34:56.78 7 | return 1 - 12:34:56.78 <<< Return value from factorial: 1 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 2 - 12:34:56.78 ...... b = 1 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 2 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 2 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 3 - 12:34:56.78 ...... b = 2 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 6 - 12:34:56.78 8 | return mul(x, factorial(x - 1)) - 12:34:56.78 <<< Return value from factorial: 6 - 12:34:56.78 >>> Call to mul in File "/path/to_file.py", line 11 - 12:34:56.78 ...... a = 4 - 12:34:56.78 ...... b = 6 - 12:34:56.78 11 | def mul(a, b): - 12:34:56.78 12 | return a * b - 12:34:56.78 <<< Return value from mul: 24 -12:34:56.78 8 | return mul(x, factorial(x - 1)) -12:34:56.78 <<< Return value from factorial: 24 \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/threads.txt b/tests/sample_results/pypy3.6/threads.txt deleted file mode 100644 index 496e974..0000000 --- a/tests/sample_results/pypy3.6/threads.txt +++ /dev/null @@ -1,12 +0,0 @@ -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 -longername >>> Call to foo in File "/path/to_file.py", line 9 -longername 9 | def foo(): -longername 10 | return 1 -longername <<< Return value from foo: 1 -short >>> Call to foo in File "/path/to_file.py", line 9 -short 9 | def foo(): -short 10 | return 1 -short <<< Return value from foo: 1 \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/unavailable_source.txt b/tests/sample_results/pypy3.6/unavailable_source.txt deleted file mode 100644 index af9a4d2..0000000 --- a/tests/sample_results/pypy3.6/unavailable_source.txt +++ /dev/null @@ -1,8 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78 4 | SOURCE IS UNAVAILABLE -12:34:56.78 5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 4 -12:34:56.78  4 | SOURCE IS UNAVAILABLE -12:34:56.78  5 | SOURCE IS UNAVAILABLE -12:34:56.78 <<< Return value from foo: 3 \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/var_order.txt b/tests/sample_results/pypy3.6/var_order.txt deleted file mode 100644 index f23ca83..0000000 --- a/tests/sample_results/pypy3.6/var_order.txt +++ /dev/null @@ -1,14 +0,0 @@ -12:34:56.78 >>> Call to f in File "/path/to_file.py", line 5 -12:34:56.78 ...... _one = 1 -12:34:56.78 ...... _two = 2 -12:34:56.78 ...... _three = 3 -12:34:56.78 ...... _four = 4 -12:34:56.78 5 | def f(_one, _two, _three, _four): -12:34:56.78 6 | _five = None -12:34:56.78 7 | _six = None -12:34:56.78 8 | _seven = None -12:34:56.78 10 | _five, _six, _seven = 5, 6, 7 -12:34:56.78 .......... _five = 5 -12:34:56.78 .......... _six = 6 -12:34:56.78 .......... _seven = 7 -12:34:56.78 <<< Return value from f: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/variables_classes.txt b/tests/sample_results/pypy3.6/variables_classes.txt deleted file mode 100644 index d7ad679..0000000 --- a/tests/sample_results/pypy3.6/variables_classes.txt +++ /dev/null @@ -1,17 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 20 -12:34:56.78 20 | def main(): -12:34:56.78 21 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 22 | _s = WithSlots() -12:34:56.78 .......... _s = -12:34:56.78 .......... _s.x = 3 -12:34:56.78 .......... _s.y = 4 -12:34:56.78 23 | _lst = list(range(1000)) -12:34:56.78 .......... _lst = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999] -12:34:56.78 .......... len(_lst) = 1000 -12:34:56.78 .......... _lst[997] = 997 -12:34:56.78 .......... _lst[998] = 998 -12:34:56.78 .......... _lst[999] = 999 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/watch.txt b/tests/sample_results/pypy3.6/watch.txt deleted file mode 100644 index 1c3a9f0..0000000 --- a/tests/sample_results/pypy3.6/watch.txt +++ /dev/null @@ -1,18 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 17 -12:34:56.78 17 | def main(): -12:34:56.78 18 | foo = Foo() -12:34:56.78 .......... foo = -12:34:56.78 .......... foo.x = 2 -12:34:56.78 .......... len(foo.__dict__["x"] * "abc") = 6 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 0 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 4 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 12 -12:34:56.78 19 | for i in range(2): -12:34:56.78 .......... i = 1 -12:34:56.78 20 | foo.square() -12:34:56.78 .............. foo.x = 16 -12:34:56.78 .............. len(foo.__dict__["x"] * "abc") = 48 -12:34:56.78 19 | for i in range(2): -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/watch_explode.txt b/tests/sample_results/pypy3.6/watch_explode.txt deleted file mode 100644 index 2976dc4..0000000 --- a/tests/sample_results/pypy3.6/watch_explode.txt +++ /dev/null @@ -1,25 +0,0 @@ -12:34:56.78 >>> Call to main in File "/path/to_file.py", line 13 -12:34:56.78 13 | def main(): -12:34:56.78 14 | _d = OrderedDict([('a', 1), ('b', 2), ('c', 'ignore')]) -12:34:56.78 .......... len(_d) = 3 -12:34:56.78 .......... _d['a'] = 1 -12:34:56.78 .......... _d['b'] = 2 -12:34:56.78 .......... _d['c'] = 'ignore' -12:34:56.78 15 | _point = Foo(x=3, y=4) -12:34:56.78 .......... _point = -12:34:56.78 .......... _point.x = 3 -12:34:56.78 .......... _point.y = 4 -12:34:56.78 16 | lst = [7, 8, 9] -12:34:56.78 .......... len(lst) = 3 -12:34:56.78 .......... (lst + [])[0] = 7 -12:34:56.78 .......... (lst + [])[1] = 8 -12:34:56.78 .......... (lst + [])[2] = 9 -12:34:56.78 .......... lst + [] = [7, 8, 9] -12:34:56.78 .......... len(lst + []) = 3 -12:34:56.78 17 | lst.append(10) -12:34:56.78 .......... lst = [7, 8, 9, 10] -12:34:56.78 .......... len(lst) = 4 -12:34:56.78 .......... (lst + [])[3] = 10 -12:34:56.78 .......... lst + [] = [7, 8, 9, 10] -12:34:56.78 .......... len(lst + []) = 4 -12:34:56.78 <<< Return value from main: None \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/watch_extras.txt b/tests/sample_results/pypy3.6/watch_extras.txt deleted file mode 100644 index 67711cf..0000000 --- a/tests/sample_results/pypy3.6/watch_extras.txt +++ /dev/null @@ -1,19 +0,0 @@ -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... len(y) = 1 -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] -12:34:56.78 >>> Call to foo in File "/path/to_file.py", line 8 -12:34:56.78 8 | def foo(): -12:34:56.78 9 | x = 1 -12:34:56.78 .......... type(x) = 'int' -12:34:56.78 10 | y = [x] -12:34:56.78 .......... y = [1] -12:34:56.78 .......... type(y) = 'list' -12:34:56.78 11 | return y -12:34:56.78 <<< Return value from foo: [1] \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/with_block.txt b/tests/sample_results/pypy3.6/with_block.txt deleted file mode 100644 index fd46d74..0000000 --- a/tests/sample_results/pypy3.6/with_block.txt +++ /dev/null @@ -1,49 +0,0 @@ -12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 -12:34:56.78 .......... x = 2 -12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Enter with block in foo in File "/path/to_file.py", line 13 - 12:34:56.78 .......... x = 1 - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 >>> Call to bar1 in File "/path/to_file.py", line 26 - 12:34:56.78 ...... _x = 0 - 12:34:56.78 26 | def bar1(_x): - 12:34:56.78 27 | qux() - 12:34:56.78 <<< Return value from bar1: None - 12:34:56.78 17 | foo(x - 1) - 12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 1 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None - 12:34:56.78 18 | bar2(x) - 12:34:56.78 19 | qux() - 12:34:56.78 <<< Exit with block in foo - 12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 - 12:34:56.78 ...... _x = 9 - 12:34:56.78 36 | def bar3(_x): - 12:34:56.78 37 | qux() - 12:34:56.78 <<< Return value from bar3: None -12:34:56.78 17 | foo(x - 1) -12:34:56.78 18 | bar2(x) - 12:34:56.78 >>> Call to bar2 in File "/path/to_file.py", line 31 - 12:34:56.78 ...... _x = 2 - 12:34:56.78 31 | def bar2(_x): - 12:34:56.78 32 | qux() - 12:34:56.78 <<< Return value from bar2: None -12:34:56.78 18 | bar2(x) -12:34:56.78 19 | qux() -12:34:56.78 <<< Exit with block in foo -12:34:56.78 >>> Call to bar3 in File "/path/to_file.py", line 36 -12:34:56.78 ...... _x = 9 -12:34:56.78 36 | def bar3(_x): -12:34:56.78 37 | qux() -12:34:56.78 <<< Return value from bar3: None -12:34:56.78 >>> Enter with block in gen in File "/path/to_file.py", line 47 -12:34:56.78 .................. i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Yield value from gen: 1 -12:34:56.78 >>> Re-enter generator gen in File "/path/to_file.py", line 48 -12:34:56.78 ...................... i = 1 -12:34:56.78 48 | yield i -12:34:56.78 <<< Exit with block in gen \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/with_block_depth.txt b/tests/sample_results/pypy3.6/with_block_depth.txt deleted file mode 100644 index 7063835..0000000 --- a/tests/sample_results/pypy3.6/with_block_depth.txt +++ /dev/null @@ -1,20 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 21 -12:34:56.78 22 | result1 = f2(5) - 12:34:56.78 >>> Call to f2 in File "/path/to_file.py", line 14 - 12:34:56.78 ...... x2 = 5 - 12:34:56.78 14 | def f2(x2): - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 >>> Call to f3 in File "/path/to_file.py", line 9 - 12:34:56.78 ...... x3 = 5 - 12:34:56.78 9 | def f3(x3): - 12:34:56.78 10 | result3 = f4(x3) - 12:34:56.78 .......... result3 = 10 - 12:34:56.78 11 | return result3 - 12:34:56.78 <<< Return value from f3: 10 - 12:34:56.78 15 | result2 = f3(x2) - 12:34:56.78 .......... result2 = 10 - 12:34:56.78 16 | return result2 - 12:34:56.78 <<< Return value from f2: 10 -12:34:56.78 22 | result1 = f2(5) -12:34:56.78 .............. result1 = 10 -12:34:56.78 <<< Exit with block in main \ No newline at end of file diff --git a/tests/sample_results/pypy3.6/with_no_args.txt b/tests/sample_results/pypy3.6/with_no_args.txt deleted file mode 100644 index 12f7483..0000000 --- a/tests/sample_results/pypy3.6/with_no_args.txt +++ /dev/null @@ -1,7 +0,0 @@ -12:34:56.78 >>> Enter with block in main in File "/path/to_file.py", line 6 -12:34:56.78 .......... x = 1 -12:34:56.78 7 | result = 2 + 2 -12:34:56.78 .............. result = 4 -12:34:56.78 <<< Exit with block in main -12:34:56.78 LOG: -12:34:56.78 .... x = 1 \ No newline at end of file diff --git a/tests/samples/color_without_comprehension.py b/tests/samples/color_without_comprehension.py new file mode 100644 index 0000000..665a3fe --- /dev/null +++ b/tests/samples/color_without_comprehension.py @@ -0,0 +1,27 @@ +from __future__ import print_function + +from snoop import Config + +config = Config(color=True) +snoop = config.snoop +pp = config.pp + + +def foo(): + raise TypeError + + +@snoop(depth=2) +def main(): + try: + (None + or foo)() + except: + pass + x = 1 + y = 2 + pp( + [ + x + y + ] + ) diff --git a/tests/test_snoop.py b/tests/test_snoop.py index 2f78942..63d3e91 100644 --- a/tests/test_snoop.py +++ b/tests/test_snoop.py @@ -130,6 +130,9 @@ def generate_test_samples(): if module_name in 'f_string' and sys.version_info[:2] < (3, 6): continue + if module_name == 'color' and sys.version_info[:2] == (3, 12) and os.environ.get('CI'): + continue + yield module_name diff --git a/tests/version_differences.txt b/tests/version_differences.txt index 281e094..ce9fc42 100644 --- a/tests/version_differences.txt +++ b/tests/version_differences.txt @@ -1,102 +1,85 @@ cellvars Differing versions: -2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2.7, pypy3.5, pypy3.6 -3.10, 3.11 +3.10, 3.11, 3.12, 3.13 +3.8, 3.9 color Differing versions: -2.7 3.10, 3.11, 3.8, 3.9 -3.4 -3.5, 3.6, 3.7, pypy3.5, pypy3.6 -pypy2.7 +3.12 +3.13 + +comprehensions +Differing versions: +3.10, 3.11, 3.8, 3.9 +3.12, 3.13 decorator_exception Differing versions: -2.7, pypy2.7 3.10 -3.11 -3.4 -3.5, 3.6, 3.7, pypy3.5, pypy3.6 +3.11, 3.12, 3.13 3.8, 3.9 -depth -Differing versions: -2.7, 3.10, 3.11, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2.7, pypy3.5, pypy3.6 -3.4 - -django_sample -Doesn't exist: 2.7, pypy2.7 - -enabled -Doesn't exist: 3.4, pypy2.7, pypy3.5, pypy3.6 - end_finally Differing versions: -2.7, 3.4, 3.5, 3.6, 3.7, pypy2.7, pypy3.5, pypy3.6 -3.10, 3.11 +3.10, 3.11, 3.12, 3.13 3.8 3.9 exception Differing versions: -2.7, 3.5, 3.6, 3.7 -3.10, 3.11, 3.8, 3.9 -3.4 -pypy2.7, pypy3.5, pypy3.6 - -f_string -Doesn't exist: 2.7, 3.4, 3.5, pypy2.7, pypy3.5 +3.10, 3.11, 3.12, 3.8, 3.9 +3.13 multiline Differing versions: -2.7, 3.4, 3.5, 3.6, 3.7, pypy2.7, pypy3.5, pypy3.6 3.10 -3.11 +3.11, 3.12, 3.13 3.8, 3.9 pandas_sample -Doesn't exist: 3.4, pypy2.7, pypy3.5, pypy3.6 - -pp Differing versions: -2.7, 3.5, 3.6, 3.7, pypy2.7 -3.10, 3.11, 3.8, 3.9 -3.4 -pypy3.5, pypy3.6 +3.10, 3.8 +3.11, 3.12, 3.13, 3.9 pp_custom_pformat Differing versions: -2.7, pypy2.7 -3.10, 3.11 -3.4 -3.5, 3.6, 3.7, 3.8, 3.9, pypy3.5, pypy3.6 +3.10, 3.11, 3.12, 3.13 +3.8, 3.9 pp_exception Differing versions: -2.7, 3.10, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2.7, pypy3.5, pypy3.6 -3.11 -3.4 +3.10, 3.8, 3.9 +3.11, 3.12 +3.13 spy -Doesn't exist: 3.4, pypy2.7, pypy3.5, pypy3.6 Differing versions: -2.7, 3.10, 3.5, 3.6, 3.7, 3.8, 3.9 -3.11 +3.10, 3.8, 3.9 +3.11, 3.12, 3.13 + +variables_classes +Differing versions: +3.10, 3.11, 3.8, 3.9 +3.12, 3.13 + +watch_explode +Differing versions: +3.10, 3.11, 3.8, 3.9 +3.12, 3.13 with_block Differing versions: -2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2.7, pypy3.5, pypy3.6 -3.10, 3.11 +3.10, 3.11, 3.12, 3.13 +3.8, 3.9 with_block_depth Differing versions: -2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2.7, pypy3.5, pypy3.6 -3.10, 3.11 +3.10, 3.11, 3.12, 3.13 +3.8, 3.9 with_no_args Differing versions: -2.7, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2.7, pypy3.5, pypy3.6 -3.10, 3.11 -3.4 +3.10, 3.11, 3.12, 3.13 +3.8, 3.9 diff --git a/tox.ini b/tox.ini index 7a2f615..d961ea2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{27,35,36,37,38,39,310,311,py27,py36} + py{38,39,310,311,312,313} [testenv] deps =