From 9925a6251886e3692215f3c8ea052dc9a0687d28 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Tue, 29 Sep 2020 22:12:52 -0700 Subject: Blackify for v20.8b1 --- tests/test_path.py | 3 +-- tests/test_testing.py | 4 +++- tests/test_util.py | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/test_path.py b/tests/test_path.py index f77e35638..479e12e40 100644 --- a/tests/test_path.py +++ b/tests/test_path.py @@ -655,8 +655,7 @@ class DummyPackageOrModule: class DummyNamespacePackage: - """Has no __file__ attribute. - """ + """Has no __file__ attribute.""" def __init__(self, real_package_or_module): self.__name__ = real_package_or_module.__name__ diff --git a/tests/test_testing.py b/tests/test_testing.py index 74c0ae639..8f912dbd7 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -300,7 +300,9 @@ class TestDummyRequest(unittest.TestCase): class TestDummyTemplateRenderer(unittest.TestCase): - def _getTargetClass(self,): + def _getTargetClass( + self, + ): from pyramid.testing import DummyTemplateRenderer return DummyTemplateRenderer diff --git a/tests/test_util.py b/tests/test_util.py index cb5fd8185..bf4c08988 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -137,7 +137,7 @@ class Test_InstancePropertyHelper(unittest.TestCase): self.assertEqual(2, foo.x) def test_reset_reify(self): - """ This is questionable behavior, but may as well get notified + """This is questionable behavior, but may as well get notified if it changes.""" foo = Dummy() helper = self._getTargetClass() @@ -333,7 +333,7 @@ class Test_InstancePropertyMixin(unittest.TestCase): self.assertEqual(2, foo.x) def test_reset_reify(self): - """ This is questionable behavior, but may as well get notified + """This is questionable behavior, but may as well get notified if it changes.""" foo = self._makeOne() foo.set_property(lambda _: 1, name='x', reify=True) -- cgit v1.2.3