MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_tell_bad_args

Method test_tell_bad_args

Lib/test/test_lzma.py:1352–1355  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1350 self.assertEqual(f.tell(), len(INPUT))
1351
1352 def test_tell_bad_args(self):
1353 f = LZMAFile(BytesIO(COMPRESSED_XZ))
1354 f.close()
1355 self.assertRaises(ValueError, f.tell)
1356
1357 @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: True is not false
1358 def test_issue21872(self):

Callers

nothing calls this directly

Calls 4

closeMethod · 0.95
LZMAFileClass · 0.90
BytesIOClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected