diff options
author | Anthony Sottile <asottile@umich.edu> | 2019-06-02 15:32:00 -0700 |
---|---|---|
committer | Bruno Oliveira <bruno@esss.com.br> | 2019-06-03 12:08:02 -0300 |
commit | a91fe1feddbded535a4322ab854429e3a3961fb4 (patch) | |
tree | f49d6841e4b293a850738bf6a0031e101ecebfe8 /testing/test_recwarn.py | |
parent | 3f1ec520fcb88fd4051829e660b6faefc1c542ea (diff) | |
download | pytest-a91fe1feddbded535a4322ab854429e3a3961fb4.tar.gz |
pre-commit run pyupgrade --all-files
Diffstat (limited to 'testing/test_recwarn.py')
-rw-r--r-- | testing/test_recwarn.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/test_recwarn.py b/testing/test_recwarn.py index 10fd8a481..1c68b3787 100644 --- a/testing/test_recwarn.py +++ b/testing/test_recwarn.py @@ -26,7 +26,7 @@ def test_recwarn_functional(testdir): reprec.assertoutcome(passed=1) -class TestWarningsRecorderChecker(object): +class TestWarningsRecorderChecker: def test_recording(self): rec = WarningsRecorder() with rec: @@ -73,7 +73,7 @@ class TestWarningsRecorderChecker(object): pass # can't enter twice -class TestDeprecatedCall(object): +class TestDeprecatedCall: """test pytest.deprecated_call()""" def dep(self, i, j=None): @@ -205,7 +205,7 @@ class TestDeprecatedCall(object): warnings.warn("this is not here", DeprecationWarning) -class TestWarns(object): +class TestWarns: def test_strings(self): # different messages, b/c Python suppresses multiple identical warnings source1 = "warnings.warn('w1', RuntimeWarning)" |