Skip to content

Commit

Permalink
Update tests/test_pytest.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Hall <[email protected]>
  • Loading branch information
15r10nk and alexmojaki authored Sep 22, 2022
1 parent e1f2838 commit 210cdb2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/test_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,10 @@ def collect_names(code):
import dis

def test_pytest_rewrite():
frame=inspect.currentframe()
#dis.dis(frame.f_code)
for bc in get_instructions(frame.f_code):
print(bc)

frame = inspect.currentframe()

# check for assert statements rewrite caused by this assert
assert is_rewritten_by_pytest(frame.f_code)==True
assert is_rewritten_by_pytest(frame.f_code)

def test_no_pytest_rewrite():
frame=inspect.currentframe()
Expand Down

0 comments on commit 210cdb2

Please sign in to comment.