summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-02-12 21:57:24 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-02-24 10:39:04 +0100
commitdfcee1393714dde8761833ca13aa302309d124eb (patch)
tree09aa59d553a8691aae002c20f449192cd3661637
parentc77f40f3688c034050682a9353610f483ce16414 (diff)
downloadurlgrabber-dfcee1393714dde8761833ca13aa302309d124eb.tar.gz
Apply 'methodattrs' fixer
Just a cleanup.
-rw-r--r--test/munittest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/munittest.py b/test/munittest.py
index f99b0d9..2a7eaf8 100644
--- a/test/munittest.py
+++ b/test/munittest.py
@@ -608,7 +608,7 @@ class TestLoader:
issubclass(obj, unittest.TestCase)):
return self.loadTestsFromTestCase(obj)
elif isinstance(obj, types.UnboundMethodType):
- return obj.im_class(obj.__name__)
+ return obj.__self__.__class__(obj.__name__)
elif callable(obj):
test = obj()
if not isinstance(test, unittest.TestCase) and \