aboutsummaryrefslogtreecommitdiff
path: root/pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2023-08-29 22:31:30 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-08-29 22:31:30 +0000
commitee132a3ba2a7295008913e19af9328d0954f240e (patch)
treef40c1a21c47e1a74164c5feb8a577145a2970aeb /pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py
parentf9490653f18ce1f2997b79d6ef6d46f2b10ee44d (diff)
parentf1db2cd21ffd0089578fd72dd32e3df5f2f40f44 (diff)
downloadpyfakefs-main.tar.gz
Upgrade pyfakefs to 979a878b12a3f625abe986a2249b677e6193ae3d am: a3bcabf4b7 am: 78fdc2ac9e am: 1261801ef1 am: 9f1f3798d8 am: f1db2cd21fHEADandroid-14.0.0_r51android-14.0.0_r50mastermainandroid14-qpr3-release
Original change: https://android-review.googlesource.com/c/platform/external/python/pyfakefs/+/2726660 Change-Id: I5d286395144c422ac19f4b0c0a1b5279f14942b7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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