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

Method test_mtime

Lib/test/test_compileall.py:125–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

123 self.assertTrue(*self.timestamp_metadata())
124
125 def test_mtime(self):
126 # Test a change in mtime leads to a new .pyc.
127 self.recreation_check(struct.pack('<4sLL', importlib.util.MAGIC_NUMBER,
128 0, 1))
129
130 def test_magic_number(self):
131 # Test a change in mtime leads to a new .pyc.

Callers

nothing calls this directly

Calls 2

recreation_checkMethod · 0.95
packMethod · 0.45

Tested by

no test coverage detected