diff options
author | Guido van Rossum <guido@python.org> | 2007-08-07 22:44:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-07 22:44:20 (GMT) |
commit | bdba5cf69478c82b3f8f644e52e6b6ca7d474b97 (patch) | |
tree | 9576f0579b44bcba474bc066de08d18b081b56a2 /Lib/test | |
parent | 0cb85a972f45ab1c59c6f11ecb73cf9509e23225 (diff) | |
download | cpython-bdba5cf69478c82b3f8f644e52e6b6ca7d474b97.zip cpython-bdba5cf69478c82b3f8f644e52e6b6ca7d474b97.tar.gz cpython-bdba5cf69478c82b3f8f644e52e6b6ca7d474b97.tar.bz2 |
Change the repr() of frozenset instances (and set subclasses)
from name([e1, e2, ...]) to name({e1, e2, ...}).
This makes more sense now we have the set notation.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_set.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index ee570f0..df72fb2 100644 --- a/Lib/test/test_set.py +++ b/Lib/test/test_set.py @@ -265,7 +265,7 @@ class TestJointOps(unittest.TestCase): self.assertEqual(repr(s), '{set(...)}') else: name = repr(s).partition('(')[0] # strip class name - self.assertEqual(repr(s), '%s([%s(...)])' % (name, name)) + self.assertEqual(repr(s), '%s({%s(...)})' % (name, name)) def test_cyclical_print(self): w = ReprWrapper() |