summaryrefslogtreecommitdiff
path: root/tests/unit/utils/test_qtutils.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-24 11:36:06 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-03-24 11:36:06 +0100
commit27ceb8196db3986c6c6df55152782f644be6f8c2 (patch)
treeb5735c2bde710c62ef5143bd39a4bc9bab1bbefe /tests/unit/utils/test_qtutils.py
parent816ec60fe4155dbc35e8be333482839ba5a0ba8a (diff)
downloadqutebrowser-27ceb8196db3986c6c6df55152782f644be6f8c2.tar.gz
qutebrowser-27ceb8196db3986c6c6df55152782f644be6f8c2.zip
Simplify paths in test_jinja, _qtutils and _version
Diffstat (limited to 'tests/unit/utils/test_qtutils.py')
-rw-r--r--tests/unit/utils/test_qtutils.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/unit/utils/test_qtutils.py b/tests/unit/utils/test_qtutils.py
index 2d98feece..c0832c9fb 100644
--- a/tests/unit/utils/test_qtutils.py
+++ b/tests/unit/utils/test_qtutils.py
@@ -520,10 +520,7 @@ if test_file is not None:
def clean_up_python_testfile():
"""Clean up the python testfile after tests if tests didn't."""
yield
- try:
- pathlib.Path(test_file.TESTFN).unlink()
- except FileNotFoundError:
- pass
+ pathlib.Path(test_file.TESTFN).unlink(missing_ok=True)
class PyIODeviceTestMixin: