MCPcopy Index your code
hub / github.com/python/cpython / test_tell_bad_args

Method test_tell_bad_args

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

Source from the content-addressed store, hash-verified

1340 self.assertEqual(f.tell(), len(INPUT))
1341
1342 def test_tell_bad_args(self):
1343 f = LZMAFile(BytesIO(COMPRESSED_XZ))
1344 f.close()
1345 self.assertRaises(ValueError, f.tell)
1346
1347 def test_issue21872(self):
1348 # sometimes decompress data incompletely

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