diff --git a/tests/test_pytest.py b/tests/test_pytest.py index f67c597..77d155d 100644 --- a/tests/test_pytest.py +++ b/tests/test_pytest.py @@ -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()