mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Bug #1575169: operator.isSequenceType() now returns False for subclasses of dict.
This commit is contained in:
parent
5a0217efea
commit
4da5bf644a
2 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue