Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f17526 commit f83d8fcCopy full SHA for f83d8fc
src/tests/test_indexer.py
@@ -438,13 +438,13 @@ def test_object_indexer():
438
ob[long(1)] = "long"
439
assert ob[long(1)] == "long"
440
441
- with pytest.raises(TypeError):
442
- class Eggs(object):
443
- pass
+ class Eggs(object):
+ pass
444
445
- key = Eggs()
446
- ob = Test.ObjectIndexerTest()
447
- ob[key] = "wrong"
+ key = Eggs()
+ ob = Test.ObjectIndexerTest()
+ ob[key] = "eggs_key"
+ assert ob[key] == "eggs_key"
448
449
450
def test_interface_indexer():
0 commit comments