diff options
author | Andras Tim <andras.tim@gmail.com> | 2017-07-17 01:25:10 +0200 |
---|---|---|
committer | Andras Tim <andras.tim@gmail.com> | 2017-07-17 01:44:23 +0200 |
commit | 85141a419f7c8ca314ff682ad58b18f1485da993 (patch) | |
tree | 327f08b7bdc16dba8a1984b4378f84ceeb614534 /testing/test_recwarn.py | |
parent | 7d2ceb7872c653019cd07fc0a405410072860e1e (diff) | |
download | pytest-85141a419f7c8ca314ff682ad58b18f1485da993.tar.gz |
Fixed E701 flake8 errors
multiple statements on one line (colon)
Diffstat (limited to 'testing/test_recwarn.py')
-rw-r--r-- | testing/test_recwarn.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/test_recwarn.py b/testing/test_recwarn.py index e8b1db399..5611d1a44 100644 --- a/testing/test_recwarn.py +++ b/testing/test_recwarn.py @@ -283,9 +283,11 @@ class TestWarns(object): assert str(record[0].message) == "user" assert str(record[1].message) == "runtime" - class MyUserWarning(UserWarning): pass + class MyUserWarning(UserWarning): + pass - class MyRuntimeWarning(RuntimeWarning): pass + class MyRuntimeWarning(RuntimeWarning): + pass with pytest.warns((UserWarning, RuntimeWarning)) as record: warnings.warn("user", MyUserWarning) |