<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_time.py, branch v3.7.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_time.py?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_time.py?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-11-28T17:58:31Z</updated>
<entry>
<title>bpo-33723: Remove busy loop from test_time (GH-10773)</title>
<updated>2018-11-28T17:58:31Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-11-28T17:58:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d46d753d152a5d01f9c454d18b1ae660509d9b16'/>
<id>urn:sha1:d46d753d152a5d01f9c454d18b1ae660509d9b16</id>
<content type='text'>
The "busy loops" of test_process_time() and test_thread_time() are
not reliable and fail randomly on Windows: remove them.
(cherry picked from commit 48498dd57f79ab1d061c754ad6a2ebe1a7172b0e)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-33723: Fix test_time.test_thread_time() (GH-10724)</title>
<updated>2018-11-26T20:36:54Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-11-26T20:36:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5350dd1b50e60882a2da6d53ed27e02d2b698f2e'/>
<id>urn:sha1:5350dd1b50e60882a2da6d53ed27e02d2b698f2e</id>
<content type='text'>
Tolerate up to 30 ms, instead of 15 min, in other threads.
(cherry picked from commit 65c216e74f7957006ef7653b7e2afe83007c45ce)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>closes bpo-34654: Tolerate + at the beginning of large years. (GH-9238)</title>
<updated>2018-09-12T23:54:10Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-09-12T23:54:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ea2fcd3db65b796ad3eda1619a903cefb1aa9363'/>
<id>urn:sha1:ea2fcd3db65b796ad3eda1619a903cefb1aa9363</id>
<content type='text'>
(cherry picked from commit e1a34ceb541ef87e03bb428630097dacc9c658e5)

Co-authored-by: Benjamin Peterson &lt;benjamin@python.org&gt;</content>
</entry>
<entry>
<title>bpo-13312: Avoid int underflow in time year. (GH-8912)</title>
<updated>2018-08-25T05:53:00Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-08-25T05:53:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d5f017bbd65f37ac53fd3c6c439a53155eef2475'/>
<id>urn:sha1:d5f017bbd65f37ac53fd3c6c439a53155eef2475</id>
<content type='text'>
Avoids an integer underflow in the time module's year handling code.
(cherry picked from commit 76be0fffff8b7dbe649ad4821144461800ffb0d0)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>bpo-34179:  Make sure decimal context doesn't affect other tests.  (GH-8376) (#8383)</title>
<updated>2018-07-21T18:38:19Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-21T18:38:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=92ce6a64afcebd414def3b80b18b56448792a587'/>
<id>urn:sha1:92ce6a64afcebd414def3b80b18b56448792a587</id>
<content type='text'>
(cherry picked from commit 938045f335b52ddb47076e9fbe4229a33b4bd9be)

Co-authored-by: Bo Bayles &lt;bbayles@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-33723: Fix test_time.test_process_time() (GH-8358) (GH-8362)</title>
<updated>2018-07-21T01:52:44Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-21T01:52:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a7a6eac966dd52db1762c8f455c1e208df36feb4'/>
<id>urn:sha1:a7a6eac966dd52db1762c8f455c1e208df36feb4</id>
<content type='text'>
The test failed on my laptop because the busy loop took 15.9 ms
whereas the test expects at least 20 ms. Modify test_process_time()
as test_thread_time() has been modified recently: only require 15 ms
instead of 20 ms.
(cherry picked from commit e78dace8dcb23c371df19c9add65895adf436995)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-33723: Fix test_time.test_thread_time() (GH-8267)</title>
<updated>2018-07-12T14:05:43Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-07-12T14:05:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4ada0cff5315627eae8208adf0209b479f497b8d'/>
<id>urn:sha1:4ada0cff5315627eae8208adf0209b479f497b8d</id>
<content type='text'>
The test failed on AMD64 Debian root 3.x buildbot because the busy
loop of 100 ms only increased time.thread_time() by 19.9 ms which is
smaller than 20 ms. Modify the test to tolerate a delta of at least
15 ms instead of 20 ms.
(cherry picked from commit d6345def68d3a0227253da26213dadb247f786db)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-32025: Add time.thread_time() (#4410)</title>
<updated>2017-11-15T21:52:21Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-11-15T21:52:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4bd41c9b52ea0c730e9e294caaf003e54c088c6e'/>
<id>urn:sha1:4bd41c9b52ea0c730e9e294caaf003e54c088c6e</id>
<content type='text'>
* bpo-32025: Add time.thread_time()

* Add missing #endif

* Add NEWS blurb

* Add docs and whatsnew

* Address review comments

* Review comments
</content>
</entry>
<entry>
<title>bpo-31784: Implement PEP 564: add time.time_ns() (#3989)</title>
<updated>2017-11-02T14:28:27Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-02T14:28:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c29b585fd4b5a91d17fc5dd41d86edff28a30da3'/>
<id>urn:sha1:c29b585fd4b5a91d17fc5dd41d86edff28a30da3</id>
<content type='text'>
Add new time functions:

* time.clock_gettime_ns()
* time.clock_settime_ns()
* time.monotonic_ns()
* time.perf_counter_ns()
* time.process_time_ns()
* time.time_ns()

Add new _PyTime functions:

* _PyTime_FromTimespec()
* _PyTime_FromNanosecondsObject()
* _PyTime_FromTimeval()

Other changes:

* Add also os.times() tests to test_os.
* pytime_fromtimeval() and pytime_fromtimeval() now return
  _PyTime_MAX or _PyTime_MIN on overflow, rather than undefined
  behaviour
* _PyTime_FromNanoseconds() parameter type changes from long long to
  _PyTime_t</content>
</entry>
<entry>
<title>time.clock() now emits a DeprecationWarning (GH-4020)</title>
<updated>2017-10-17T21:46:45Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-10-17T21:46:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=884d13a55fc328e2e1e3948a82b361b30804b818'/>
<id>urn:sha1:884d13a55fc328e2e1e3948a82b361b30804b818</id>
<content type='text'>
bpo-31803: time.clock() and time.get_clock_info('clock') now emit a
DeprecationWarning warning.

Replace time.clock() with time.perf_counter() in tests and demos.

Remove also hasattr(time, 'monotonic') in test_time since time.monotonic()
is now always available since Python 3.5.
</content>
</entry>
</feed>
