Browse Source

Merge pull request #4659 from ThomasWaldmann/pytest-failsafe-1.1

cope with ANY error when importing pytest into borg.testsuite, #4652
TW 6 years ago
parent
commit
b29dc81fa8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/testsuite/__init__.py

+ 1 - 1
src/borg/testsuite/__init__.py

@@ -27,7 +27,7 @@ except ImportError:
 
 try:
     from pytest import raises
-except ImportError:
+except:  # noqa
     raises = None
 
 has_lchflags = hasattr(os, 'lchflags') or sys.platform.startswith('linux')