aboutsummaryrefslogtreecommitdiff
path: root/pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py')
-rw-r--r--pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py b/pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py
index 42ff87e..2725cde 100644
--- a/pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py
+++ b/pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py
@@ -7,15 +7,14 @@ import os
import pytest
-@pytest.mark.skipif(not os.path.exists('testresult.txt'),
- reason='Only run in CI tests')
+@pytest.mark.skipif(not os.path.exists("testresult.txt"), reason="Only run in CI tests")
def test_failed_testresult_stacktrace():
- with open('testresult.txt') as f:
+ with open("testresult.txt") as f:
contents = f.read()
# before the fix, a triple question mark has been displayed
# instead of the stacktrace
assert contents
- print('contents', contents)
- assert '???' not in contents
- assert 'AttributeError' not in contents
- assert 'def test_fs(fs):' in contents
+ print("contents", contents)
+ assert "???" not in contents
+ assert "AttributeError" not in contents
+ assert "def test_fs(fs):" in contents