diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 18:25:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:38:19 -0400 |
commit | ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712 (patch) | |
tree | 5cd11a9f699ec93711422b00b519d096b1135ff3 /tests/test_context.py | |
parent | 4c4ba2e0bc9ec663fa3772d2b088f736345a65a1 (diff) | |
download | python-coveragepy-git-ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712.tar.gz |
refactor: pyupgrade --py36-plus tests/**.py
Diffstat (limited to 'tests/test_context.py')
-rw-r--r-- | tests/test_context.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_context.py b/tests/test_context.py index 688d5cce..b20ecdef 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -205,7 +205,7 @@ def get_qualname(): # pylint: disable=missing-class-docstring, missing-function-docstring, unused-argument -class Parent(object): +class Parent: def meth(self): return get_qualname() @@ -216,7 +216,7 @@ class Parent(object): class Child(Parent): pass -class SomethingElse(object): +class SomethingElse: pass class MultiChild(SomethingElse, Child): @@ -273,5 +273,5 @@ class QualnameTest(CoverageTest): def test_bug_829(self): # A class with a name like a function shouldn't confuse qualname_from_frame. - class test_something(object): # pylint: disable=unused-variable + class test_something: # pylint: disable=unused-variable assert get_qualname() is None |