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

Method test_mode

Lib/test/test_gzip.py:323–329  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

321 f.write(b'GZ\n')
322
323 def test_mode(self):
324 self.test_write()
325 with gzip.GzipFile(self.filename, 'r') as f:
326 self.assertEqual(f.myfileobj.mode, 'rb')
327 os_helper.unlink(self.filename)
328 with gzip.GzipFile(self.filename, 'x') as f:
329 self.assertEqual(f.myfileobj.mode, 'xb')
330
331 def test_1647484(self):
332 for mode in ('wb', 'rb'):

Callers

nothing calls this directly

Calls 3

test_writeMethod · 0.95
assertEqualMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected