summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_operator.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-02-07 22:12:01 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-02-07 22:12:01 (GMT)
commit127ef44c7b56b726abcdddda28c88996b66076c0 (patch)
tree4b98d9cd4cc4c16c4bb900ec665e53ae840daffe /Lib/test/test_operator.py
parent113776c41134bd499efe2b404e25446b31b5c48d (diff)
downloadcpython-127ef44c7b56b726abcdddda28c88996b66076c0.zip
cpython-127ef44c7b56b726abcdddda28c88996b66076c0.tar.gz
cpython-127ef44c7b56b726abcdddda28c88996b66076c0.tar.bz2
Bug #1575169: operator.isSequenceType() now returns False for subclasses of dict.
Diffstat (limited to 'Lib/test/test_operator.py')
-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)