summaryrefslogtreecommitdiff
path: root/Lib/test/test_set.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-03-13 00:13:22 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-03-13 00:13:22 +0000
commit17d905449d485c12268ce659f0c2542cd5386e05 (patch)
treefae0c10a036300c9ffb034aa834db23a155d49d7 /Lib/test/test_set.py
parentf1539bd4fc32e757e1f3bf1c7afd334dcc867628 (diff)
downloadcpython-git-17d905449d485c12268ce659f0c2542cd5386e05.tar.gz
Issue #7818: set().test_c_api() doesn't expect a set('abc'), modify the set.
Diffstat (limited to 'Lib/test/test_set.py')
-rw-r--r--Lib/test/test_set.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index 32f2803d93..808cf275ff 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -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