summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-02-07 22:12:01 +0000
committerRaymond Hettinger <python@rcn.com>2007-02-07 22:12:01 +0000
commit127ef44c7b56b726abcdddda28c88996b66076c0 (patch)
tree4b98d9cd4cc4c16c4bb900ec665e53ae840daffe /Lib/test
parent113776c41134bd499efe2b404e25446b31b5c48d (diff)
downloadcpython-git-127ef44c7b56b726abcdddda28c88996b66076c0.tar.gz
Bug #1575169: operator.isSequenceType() now returns False for subclasses of dict.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_operator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_operator.py b/Lib/test/test_operator.py
index c1fe88cbef..3cc0f1e837 100644
--- a/Lib/test/test_operator.py
+++ b/Lib/test/test_operator.py
@@ -215,6 +215,8 @@ class OperatorTestCase(unittest.TestCase):
self.failUnless(operator.isSequenceType(xrange(10)))
self.failUnless(operator.isSequenceType('yeahbuddy'))
self.failIf(operator.isSequenceType(3))
+ class Dict(dict): pass
+ self.failIf(operator.isSequenceType(Dict()))
def test_lshift(self):
self.failUnlessRaises(TypeError, operator.lshift)