summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r--Lib/test/test_functools.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index 8fee1c6..c300270 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -556,11 +556,9 @@ class TestPartialMethod(unittest.TestCase):
with self.assertRaises(TypeError):
class B:
method = functools.partialmethod()
- with self.assertWarns(DeprecationWarning):
+ with self.assertRaises(TypeError):
class B:
method = functools.partialmethod(func=capture, a=1)
- b = B()
- self.assertEqual(b.method(2, x=3), ((b, 2), {'a': 1, 'x': 3}))
def test_repr(self):
self.assertEqual(repr(vars(self.A)['both']),