Author: Yannick Jadoul <[email protected]>
Branch: py3.7-pep564
Changeset: r97936:9741d65e2e03
Date: 2019-10-17 18:41 +0200
http://bitbucket.org/pypy/pypy/changeset/9741d65e2e03/
Log: Fix return type of edge-case of gettimeofday when only C's time() is
available
diff --git a/pypy/module/time/interp_time.py b/pypy/module/time/interp_time.py
--- a/pypy/module/time/interp_time.py
+++ b/pypy/module/time/interp_time.py
@@ -329,7 +329,7 @@
if return_ns:
return space.newint(widen(result) * 10**9)
else:
- return space.newint(result)
+ return space.newfloat(float(result))
def gettimeofday(space, w_info=None):
return _gettimeofday_impl(space, w_info, False)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit