Skip to content

Commit 68d2798

Browse files
committed
Avoid DeprecationWarning in unit test.
No need to check for every invalid type that can be used in indexing.
1 parent 3fcb677 commit 68d2798

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

diffpy/Structure/tests/TestStructure.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ def test___getitem__(self):
271271
self.assertTrue(stru[1] is stru['B'])
272272
stru[1].label = 'A'
273273
self.assertRaises(IndexError, stru.__getitem__, 'A')
274-
self.assertRaises(IndexError, stru.__getitem__, stru[0])
275274
return
276275

277276

0 commit comments

Comments
 (0)