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

Method test_mtime

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

Source from the content-addressed store, hash-verified

119 self.assertTrue(*self.timestamp_metadata())
120
121 def test_mtime(self):
122 # Test a change in mtime leads to a new .pyc.
123 self.recreation_check(struct.pack('<4sLL', importlib.util.MAGIC_NUMBER,
124 0, 1))
125
126 def test_magic_number(self):
127 # 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