Skip to content

Commit 6fa12b0

Browse files
committed
fix tests
1 parent 9d8c46a commit 6fa12b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extra_tests/snippets/example_interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def f(x, y, *args, power=1, **kwargs):
2121
print(c2.co_consts)
2222
assert 2 in c2.co_consts, c2.co_consts
2323
assert "example_interactive.py" in c2.co_filename
24-
assert c2.co_firstlineno == 5, str(c2.co_firstlineno)
24+
assert c2.co_firstlineno == 6, str(c2.co_firstlineno)
2525
# assert isinstance(c2.co_flags, int) # 'OPTIMIZED, NEWLOCALS, NOFREE'
2626
# assert c2.co_freevars == (), str(c2.co_freevars)
2727
assert c2.co_kwonlyargcount == 1, c2.co_kwonlyargcount

extra_tests/snippets/stdlib_traceback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
raise KeyError().with_traceback(ex.__traceback__)
1515
except KeyError as ex2:
1616
tb = traceback.extract_tb(ex2.__traceback__)
17-
assert tb[1].line == "1/0"
17+
assert tb[1].line == "1 / 0"
1818

1919

2020
try:

0 commit comments

Comments
 (0)