mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Issue #7818: set().test_c_api() doesn't expect a set('abc'), modify the set.
This commit is contained in:
parent
f1539bd4fc
commit
17d905449d
2 changed files with 16 additions and 2 deletions
|
@ -562,7 +562,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue