| 1 |
Metadata-Version: 1.1 |
| 2 |
Name: fakesleep |
| 3 |
Version: 0.1 |
| 4 |
Summary: fake time.sleep() for use in tests |
| 5 |
Home-page: http://github.com/wearpants/fakesleep |
| 6 |
Author: Pete Fein |
| 7 |
Author-email: [email protected] |
| 8 |
License: BSD |
| 9 |
Description: fakesleep |
| 10 |
========= |
| 11 |
|
| 12 |
fakesleep is a simple module for tests that use `time.sleep()`. Sleeping in |
| 13 |
tests is generally considered bad (as it makes tests run slow). Using |
| 14 |
sleep with `time.time()` can lead to spurious failures, as clock |
| 15 |
precision / interpeter overhead can cause small differences in reported |
| 16 |
times. |
| 17 |
|
| 18 |
But sometimes, you need `sleep()`. |
| 19 |
|
| 20 |
fakesleep provides a fake implementation of `time.sleep()` that doesn't |
| 21 |
actually sleep. It also guarrantees "correct" results for calls to |
| 22 |
`time.time()` and other time functions. Note that `datetime` functions are |
| 23 |
**not** faked. |
| 24 |
|
| 25 |
To install, simply call `fakesleep.monkey_patch()`. To restore the real versions, call `fakesleep.monkey_restore()`. |
| 26 |
|
| 27 |
:author: Pete Fein <[email protected]> |
| 28 |
:license: BSD |
| 29 |
:versions: Python 2.7 & 3 |
| 30 |
:source: https://github.com/wearpants/fakesleep |
| 31 |
|
| 32 |
|
| 33 |
Platform: UNKNOWN |
| 34 |
Classifier: Programming Language :: Python :: 2 |
| 35 |
Classifier: Programming Language :: Python :: 3 |
| 36 |
Classifier: Development Status :: 5 - Production/Stable |
| 37 |
Classifier: Intended Audience :: Developers |
| 38 |
Classifier: License :: OSI Approved :: BSD License |