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

Function with_source_date_epoch

Lib/test/test_py_compile.py:26–33  ·  view source on GitHub ↗

Runs function with SOURCE_DATE_EPOCH set.

(fxn)

Source from the content-addressed store, hash-verified

24
25
26def with_source_date_epoch(fxn):
27 """Runs function with SOURCE_DATE_EPOCH set."""
28 @functools.wraps(fxn)
29 def wrapper(*args, **kwargs):
30 with os_helper.EnvironmentVarGuard() as env:
31 env['SOURCE_DATE_EPOCH'] = '123456789'
32 return fxn(*args, **kwargs)
33 return wrapper
34
35
36# Run tests with SOURCE_DATE_EPOCH set or unset explicitly.

Callers 1

__new__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected