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

cope with ANY error when importing pytest into borg.testsuite, #4652
This commit is contained in:
TW 2019-07-02 22:47:42 +02:00 committed by GitHub
commit b29dc81fa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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')