diff options
author | Raymond Hettinger <python@rcn.com> | 2007-12-05 18:11:08 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-12-05 18:11:08 +0000 |
commit | 2e1af256d475543a1a6c0c8c54cb2497560600bc (patch) | |
tree | a6e8ccb7fbd5959e442ae7eed6996cc6de3718fa /Lib/test/test_collections.py | |
parent | 722e1011c937ee6adb3fbb37c00fc58315ba0918 (diff) | |
download | cpython-git-2e1af256d475543a1a6c0c8c54cb2497560600bc.tar.gz |
Error checking was too aggressive (reported by Chris Tismer)
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r-- | Lib/test/test_collections.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index 52bae9afed..0b0b029d7f 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -29,6 +29,7 @@ class TestNamedTuple(unittest.TestCase): self.assertRaises(ValueError, namedtuple, 'abc', 'efg efg ghi') # duplicate field namedtuple('Point0', 'x1 y2') # Verify that numbers are allowed in names + namedtuple('_', '_ __ ___') # Verify that underscores are allowed def test_instance(self): Point = namedtuple('Point', 'x y') |