소스 검색

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

cope with ANY error when importing pytest into borg.testsuite, #4652
TW 6 년 전
부모
커밋
b29dc81fa8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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')