summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_functools.py
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2013-12-10 20:09:20 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2013-12-10 20:09:20 (GMT)
commit1f70221b861a3714735251d57695b2f472d0599b (patch)
tree945cd43b04b6351e71c23aa0cb19f6fab1f3ddda /Lib/test/test_functools.py
parent284164b47638e4e71a933ce136a33fdd352f7bac (diff)
downloadcpython-1f70221b861a3714735251d57695b2f472d0599b.zip
cpython-1f70221b861a3714735251d57695b2f472d0599b.tar.gz
cpython-1f70221b861a3714735251d57695b2f472d0599b.tar.bz2
Issue #19572: More silently skipped tests explicitly skipped.
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r--Lib/test/test_functools.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index e9c243b..445ad9e 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -43,8 +43,6 @@ class TestPartial(unittest.TestCase):
self.assertEqual(p.args, (1, 2))
self.assertEqual(p.keywords, dict(a=10, b=20))
# attributes should not be writable
- if not isinstance(self.thetype, type):
- return
self.assertRaises(TypeError, setattr, p, 'func', map)
self.assertRaises(TypeError, setattr, p, 'args', (1, 2))
self.assertRaises(TypeError, setattr, p, 'keywords', dict(a=1, b=2))
@@ -180,8 +178,10 @@ class TestPythonPartial(TestPartial):
thetype = PythonPartial
# the python version isn't picklable
- def test_pickle(self): pass
- def test_setstate_refcount(self): pass
+ test_pickle = test_setstate_refcount = None
+
+ # the python version isn't a type
+ test_attributes = None
class TestUpdateWrapper(unittest.TestCase):