Changes in tests/pybin/test_run.py [5bf1f3e:bf71cfd]
- File:
-
- 1 edited
-
tests/pybin/test_run.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/test_run.py
r5bf1f3e rbf71cfd 4 4 5 5 import pybin.settings 6 import datetime 7 8 from string import Template 9 10 class DeltaTemplate(Template): 11 delimiter = "%" 12 13 def strfdelta(tdelta, fmt): 14 d["H"], rem = divmod(tdelta.seconds, 3600) 15 d["M"], d["S"] = divmod(rem, 60) 16 t = DeltaTemplate(fmt) 17 return t.substitute(**d) 6 18 7 19 # Test class that defines what a test is
Note:
See TracChangeset
for help on using the changeset viewer.