diff options
author | Ran Benita <ran@unusedvar.com> | 2020-04-24 22:15:45 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-05-12 09:29:47 +0300 |
commit | 59a12e9ab3990496940b79eba8dde6fcd481c8c3 (patch) | |
tree | 58d4be46bb43840a9ea4c4f40ed9f18dbe3c7b6e /src/_pytest/unittest.py | |
parent | d1534181c0bd165f354179d1ac131d874b71a81b (diff) | |
download | pytest-59a12e9ab3990496940b79eba8dde6fcd481c8c3.tar.gz |
Replace bare `except`s with `except BaseException`
Mostly I wanted to remove uses of `noqa`.
In Python 3 the two are the same.
Diffstat (limited to 'src/_pytest/unittest.py')
-rw-r--r-- | src/_pytest/unittest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/unittest.py b/src/_pytest/unittest.py index fc3d1a515..773f545af 100644 --- a/src/_pytest/unittest.py +++ b/src/_pytest/unittest.py @@ -151,7 +151,7 @@ class TestCaseFunction(Function): fail("".join(values), pytrace=False) except (fail.Exception, KeyboardInterrupt): raise - except: # noqa + except BaseException: fail( "ERROR: Unknown Incompatible Exception " "representation:\n%r" % (rawexcinfo,), |