MCPcopy
hub / github.com/pex-tool/pex / test_pex_builder_deterministic_timestamp

Function test_pex_builder_deterministic_timestamp

tests/test_pex_builder.py:199–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198
199def test_pex_builder_deterministic_timestamp():
200 # type: () -> None
201 pb = PEXBuilder()
202 with temporary_dir() as td:
203 target = os.path.join(td, "foo.pex")
204 pb.build(target, deterministic=True)
205 with zipfile.ZipFile(target) as zf:
206 assert all(zinfo.date_time == (1980, 1, 1, 0, 0, 0) for zinfo in zf.infolist())
207
208
209def test_pex_builder_script_from_pex_path(tmpdir):

Callers

nothing calls this directly

Calls 4

buildMethod · 0.95
PEXBuilderClass · 0.90
temporary_dirFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected