diff options
Diffstat (limited to 'mock/tests')
-rw-r--r-- | mock/tests/testcallable.py | 3 | ||||
-rw-r--r-- | mock/tests/testhelpers.py | 9 |
2 files changed, 4 insertions, 8 deletions
diff --git a/mock/tests/testcallable.py b/mock/tests/testcallable.py index 30e1f26..729947e 100644 --- a/mock/tests/testcallable.py +++ b/mock/tests/testcallable.py @@ -107,8 +107,7 @@ class TestCallable(unittest.TestCase): pass class OldStyle: - def __call__(self): - pass + def __call__(self): pass class OldStyleSub(OldStyle): pass diff --git a/mock/tests/testhelpers.py b/mock/tests/testhelpers.py index 228c0c6..278fe6b 100644 --- a/mock/tests/testhelpers.py +++ b/mock/tests/testhelpers.py @@ -614,8 +614,7 @@ class SpecSignatureTest(unittest.TestCase): @unittest.skipIf(six.PY3, "No old style classes in Python 3") def test_old_style_classes(self): class Foo: - def f(self, a, b): - pass + def f(self, a, b): pass class Bar(Foo): g = Foo() @@ -797,8 +796,7 @@ class SpecSignatureTest(unittest.TestCase): @unittest.skipIf(six.PY3, 'no old style classes in Python 3') def test_signature_old_style_class(self): class Foo: - def __init__(self, a, b=3): - pass + def __init__(self, a, b=3): pass mock = create_autospec(Foo) @@ -904,8 +902,7 @@ class SpecSignatureTest(unittest.TestCase): def test_autospec_property(self): class Foo(object): @property - def foo(self): - return 3 + def foo(self): pass foo = create_autospec(Foo) mock_property = foo.foo |