diff options
| author | Michael Merickel <github@m.merickel.org> | 2018-10-15 09:56:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-15 09:56:42 -0500 |
| commit | bda1306749c62ef4f11cfe567ed7d56c8ad94240 (patch) | |
| tree | 304c696c105ca15bbe0f13d96c79524974de768b /tests/test_compat.py | |
| parent | 81576ee51564c49d5ff3c1c07f214f22a8438231 (diff) | |
| parent | a54bc1ccac17625991e26eb5d4577f893803c683 (diff) | |
| download | pyramid-bda1306749c62ef4f11cfe567ed7d56c8ad94240.tar.gz pyramid-bda1306749c62ef4f11cfe567ed7d56c8ad94240.tar.bz2 pyramid-bda1306749c62ef4f11cfe567ed7d56c8ad94240.zip | |
Merge pull request #3388 from mmerickel/black
format source using black
Diffstat (limited to 'tests/test_compat.py')
| -rw-r--r-- | tests/test_compat.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/test_compat.py b/tests/test_compat.py index 23ccce82e..4a14caedf 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -1,6 +1,7 @@ import unittest from pyramid.compat import is_unbound_method + class TestUnboundMethods(unittest.TestCase): def test_old_style_bound(self): self.assertFalse(is_unbound_method(OldStyle().run)) @@ -15,12 +16,17 @@ class TestUnboundMethods(unittest.TestCase): self.assertTrue(is_unbound_method(NewStyle.run)) def test_normal_func_unbound(self): - def func(): return 'OK' + def func(): # pragma: no cover + return 'OK' self.assertFalse(is_unbound_method(func)) + class OldStyle: - def run(self): return 'OK' + def run(self): # pragma: no cover + return 'OK' + class NewStyle(object): - def run(self): return 'OK' + def run(self): # pragma: no cover + return 'OK' |
