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 0e4b3ad commit b948f58Copy full SHA for b948f58
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