summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-02-07 22:24:07 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-02-07 22:24:07 (GMT)
commit4da5bf644ab0aa836d29d076524c49cd9b6f3c03 (patch)
tree26a725f7a7edb5a25eb1ddca722607d691115510 /Lib/test
parent5a0217efeab4b6b2437a431e06d1c91f07548209 (diff)
downloadcpython-4da5bf644ab0aa836d29d076524c49cd9b6f3c03.zip
cpython-4da5bf644ab0aa836d29d076524c49cd9b6f3c03.tar.gz
cpython-4da5bf644ab0aa836d29d076524c49cd9b6f3c03.tar.bz2
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 c1fe88c..3cc0f1e 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)