]> granicus.if.org Git - python/commit
Issue #22117: Fix test_gdb for the new time.sleep()
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Mar 2015 14:42:37 +0000 (15:42 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Mar 2015 14:42:37 +0000 (15:42 +0100)
commit79644f9c83b3cd992c16c6e1bd6c7a5fd49f24c0
tree1e3f7a06c6fc6cc9c6512e8f9acd44e8644e2b47
parentba508d5dd2492aa2566385fd59f5b4f1bfe15a90
Issue #22117: Fix test_gdb for the new time.sleep()

Use time.gmtime() instead of time.sleep(), because time.sleep() is no more
declared with METH_VARARGS but with METH_O. time.gmtime() is still declared
with METH_VARARGS and so it is called with PyCFunction_Call() which is the
target of the test_gdb unit test.
Lib/test/test_gdb.py