Merged revisions 78886 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78886 | victor.stinner | 2010-03-13 01:13:22 +0100 (sam., 13 mars 2010) | 2 lines

  Issue #7818: set().test_c_api() doesn't expect a set('abc'), modify the set.
........
This commit is contained in:
Victor Stinner 2010-03-13 00:19:17 +00:00
parent 6540a82a40
commit 08b36bdab4
2 changed files with 16 additions and 2 deletions

View file

@ -607,7 +607,7 @@ class TestSet(TestJointOps):
# C API test only available in a debug build
if hasattr(set, "test_c_api"):
def test_c_api(self):
self.assertEqual(set('abc').test_c_api(), True)
self.assertEqual(set().test_c_api(), True)
class SetSubclass(set):
pass