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

Method trunc

Lib/test/test_os/test_os.py:667–667  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

665 attr = name.lower()
666 if name.endswith("TIME"):
667 def trunc(x): return int(x)
668 else:
669 def trunc(x): return x
670 self.assertEqual(trunc(getattr(result, attr)),

Callers 6

testConversionsMethod · 0.80
test_truncMethod · 0.80
test_truncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected