cpython/Lib
Victor Stinner 3e2c8d84c6 test_time: rewrite PyTime API rounding tests
Drop all hardcoded tests. Instead, reimplement each function in Python, usually
using decimal.Decimal for the rounding mode.

Add much more values to the dataset. Test various timestamp units from
picroseconds to seconds, in integer and float.

Enhance also _PyTime_AsSecondsDouble().
2015-09-09 22:32:48 +02:00
..
asyncio Issue #24867: Fix asyncio.Task.get_stack() for 'async def' coroutines 2015-08-17 14:46:51 -04:00
collections merge 2015-09-08 00:36:56 -04:00
concurrent Issue #21817: When an exception is raised in a task submitted to a ProcessPoolExecutor, the remote traceback is now displayed in the parent process. 2015-01-17 20:02:14 +01:00
ctypes Merge 3.4 (ctypes) 2015-07-29 14:35:12 +02:00
curses Fix docstring in curses (#16782) 2012-12-29 23:09:32 +02:00
dbm Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
distutils Merge from 3.5. 2015-09-09 07:00:54 -07:00
email Issue #22932: Fix timezones in email.utils.formatdate. 2015-08-01 08:19:06 +12:00
encodings Added forgotten new files for issues #22681 and #22682. 2015-05-13 00:34:53 +03:00
ensurepip Update setuptools to 18.2 and pip to 7.1.2 2015-08-29 13:57:46 -04:00
html #23144: merge with 3.4. 2015-09-06 21:44:45 +03:00
http Add in missing docstrings. 2015-08-18 22:03:08 -07:00
idlelib Merge with 3.4 2015-09-09 02:10:35 -04:00
importlib Issue #24769: Interpreter now starts properly when dynamic loading 2015-08-24 19:53:56 -07:00
json Issue #24540: merger from 3.4 2015-07-05 11:45:31 -07:00
lib2to3 Merge 3.5 (Issue #24619) 2015-07-23 15:02:25 +03:00
logging Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
msilib Issue #23731: Implement PEP 488. 2015-04-13 14:21:02 -04:00
multiprocessing Issue #21116: Avoid blowing memory when allocating a multiprocessing shared 2015-04-13 20:53:43 +02:00
plat-aix4
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic - Issue #17086: Backport the patches from the 3.3 branch to cross-build 2013-01-31 23:52:03 +01:00
plat-linux
plat-netbsd1
plat-next3
plat-sunos5
plat-unixware7
pydoc_data Updated topics (again) for Python 3.5.0rc3 (second try). 2015-09-07 05:10:55 -07:00
site-packages Issue #24633: site-packages/README -> README.txt. 2015-08-24 11:46:56 +12:00
sqlite3 Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). 2015-05-22 11:13:20 +03:00
test test_time: rewrite PyTime API rounding tests 2015-09-09 22:32:48 +02:00
tkinter Close issue6549: minor ttk.Style fixes 2015-07-21 00:54:19 -07:00
turtledemo issue19075: add visual sorting algorithms to turtledemo; original code from Jason Yeo 2015-03-02 12:29:58 -08:00
unittest Issue #24857: Comparing call_args to a long sequence now correctly returns a 2015-09-09 23:39:45 +03:00
urllib Add missing docstring 2015-08-18 00:35:52 -07:00
venv Issue #23399: pyvenv creates relative symlinks where possible. 2015-02-06 11:23:58 -05:00
wsgiref Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella. 2015-07-27 10:42:54 +12:00
xml PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
xmlrpc Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
__future__.py PEP 479: Change StopIteration handling inside generators. 2015-05-09 11:44:30 -04:00
__phello__.foo.py
_bootlocale.py Fix wrong exception in _bootlocale (apparently this error condition is never triggered) 2013-10-12 15:00:44 +02:00
_collections_abc.py Issue #24400: Resurrect inspect.isawaitable() 2015-07-03 13:11:35 -04:00
_compat_pickle.py Issue #18473: Fixed pickle compatibility tests for optional modules. 2015-03-31 16:49:26 +03:00
_compression.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
_dummy_thread.py Issue 21137: Better repr for threading.Lock() 2014-05-25 18:22:35 -07:00
_markupbase.py
_osx_support.py Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite. 2014-06-25 13:36:14 -07:00
_pydecimal.py Issue #23641: Cleaned out legacy dunder names from tests and docs. 2015-03-12 22:01:30 +02:00
_pyio.py Issue #24881: Fixed setting binary mode in Python implementation of FileIO 2015-08-28 22:20:29 +03:00
_sitebuiltins.py #9364: Improve the text printed by help(pydoc) and help(help). 2014-04-19 12:59:30 -04:00
_strptime.py Fixed using deprecated escaping in regular expression in _strptime.py (issue23622). 2015-03-25 01:21:50 +02:00
_threading_local.py
_weakrefset.py Issue #20006: Fix sporadic failures in test_weakset. 2013-12-18 00:28:36 +01:00
abc.py Issue #22032: __qualname__ instead of __name__ is now always used to format 2014-07-22 15:00:37 +03:00
aifc.py Issue #24878: Fix typos and line wrap 2015-08-23 11:28:01 -07:00
antigravity.py
argparse.py Issue #24360: Improve __repr__ of argparse.Namespace() for invalid identifiers. 2015-07-29 23:51:47 +03:00
ast.py Issue #24688: ast.get_docstring() for 'async def' functions. 2015-07-23 08:54:35 +03:00
asynchat.py (Merge 3.4) Issue #16133: The asynchat.async_chat.handle_read() method now 2014-07-24 19:00:28 +02:00
asyncore.py Issue #23485: select.poll.poll() is now retried when interrupted by a signal 2015-03-30 21:38:00 +02:00
base64.py Escaped backslashes in docstrings. 2015-04-03 18:12:41 +03:00
bdb.py Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier de Gaye. 2013-11-21 11:30:06 -08:00
binhex.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
bisect.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
bz2.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
calendar.py #18705: fix a number of typos. Patch by Févry Thibault. 2013-08-17 15:50:46 +03:00
cgi.py (Merge 3.4) cgi.FieldStorage.read_multi ignores Content-Length 2015-08-18 10:23:16 -07:00
cgitb.py Issue #22831: Use "with" to avoid possible fd leaks. 2015-04-04 11:01:02 +03:00
chunk.py Issue #24608: chunk.Chunk.read() now always returns bytes, not str. 2015-07-10 22:24:47 +03:00
cmd.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
code.py Remaining fallout from 17911 2015-03-05 15:45:01 +13:00
codecs.py Issue #12160: Fix incorrect StreamCodec references in Codec.encode() and Codec.decode() docs. 2015-07-30 18:26:35 +03:00
codeop.py
colorsys.py Issue #14323: Expanded the number of digits in the coefficients for the 2013-08-06 11:51:23 +03:00
compileall.py Issue #23917: Fall back to sequential compilation when ProcessPoolExecutor doesn't exist. 2015-04-22 09:39:19 +03:00
configparser.py Issue #21159: Improve message in configparser.InterpolationMissingOptionError. 2015-08-14 11:47:41 +12:00
contextlib.py Issue #24336: The contextmanager decorator now works with functions with 2015-06-28 17:08:35 +03:00
copy.py Issue #20289: The copy module now uses pickle protocol 4 (PEP 3154) and 2015-03-24 18:06:42 +02:00
copyreg.py Issue #17810: Implement PEP 3154, pickle protocol 4. 2013-11-23 18:59:12 +01:00
cProfile.py Fix #17197: profile/cProfile modules refactored so that code of run() and runctx() utility functions is not duplicated in both modules. 2013-02-25 11:36:40 +01:00
crypt.py Issue #18405: Improve the entropy of crypt.mksalt(). 2013-08-14 01:39:14 +02:00
csv.py Issue #23171: csv.Writer.writerow() now supports arbitrary iterables. 2015-03-30 09:09:54 +03:00
datetime.py cleanup datetime code 2015-09-09 01:09:21 +02:00
decimal.py Issue #23641: Cleaned out legacy dunder names from tests and docs. 2015-03-12 21:56:08 +02:00
difflib.py Issue 24237: Raise PendingDeprecationWarning per PEP 479 2015-05-22 11:16:47 -04:00
dis.py Issue #24878: Add docstrings to selected namedtuples 2015-08-17 22:04:45 -07:00
doctest.py Issue #23731: Implement PEP 488. 2015-04-13 14:21:02 -04:00
dummy_threading.py
enum.py Close issue23900: add default __doc__ to new enumerations that do not specify one. 2015-04-11 23:23:06 -07:00
filecmp.py shallow defaults to 'True' not '1' (closes #21355) 2014-04-26 13:36:21 -04:00
fileinput.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
fnmatch.py Set cache sizes to a power-of-two 2013-02-17 01:33:37 -08:00
formatter.py Fix module deprecation warnings to have a useful stacklevel 2015-03-27 12:56:57 -04:00
fractions.py Issue #22486: Added the math.gcd() function. The fractions.gcd() function now is 2015-05-13 00:19:51 +03:00
ftplib.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
functools.py Issue #23572: Fixed functools.singledispatch on classes with falsy metaclasses. 2015-08-18 14:30:15 -04:00
genericpath.py Issue #21883: os.path.join() and os.path.relpath() now raise a TypeError with 2014-10-04 14:58:43 +03:00
getopt.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
getpass.py #21169: add comment and doc update for getpass change. 2014-04-14 10:28:58 -04:00
gettext.py Merge from 3.4 2015-04-14 10:35:43 -04:00
glob.py Issue #13968: The glob module now supports recursive search in 2014-09-11 12:17:37 +03:00
gzip.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
hashlib.py Removed duplicated words in in comments and docs. 2014-12-01 18:28:43 +02:00
heapq.py Issue #22186: Fix typos in Lib/. 2014-10-19 18:07:05 +03:00
hmac.py Issue #18775: Add name and block_size attribute to HMAC object. They now 2013-11-20 17:35:06 +01:00
imaplib.py Issue #23779: imaplib raises TypeError if authenticator tries to abort. 2015-07-31 09:01:38 +12:00
imghdr.py #20295: Teach imghdr to recognize OpenEXR format images. 2014-06-26 12:27:57 -04:00
imp.py Close #24748: Restore imp.load_dynamic compatibility 2015-09-05 21:05:05 +10:00
inspect.py Issue #13248: Delete remaining references of inspect.getargspec(). 2015-07-31 04:11:29 +03:00
io.py #21225: copy docstrings from base classes 2014-04-25 09:29:30 -04:00
ipaddress.py Issue #16261: Converted some bare except statements to except statements 2015-05-20 10:33:40 +03:00
keyword.py 17830: preserve line endings of original file when updating keywords. 2013-04-25 12:01:36 -04:00
linecache.py Issue #23838: linecache now clears the cache and returns an empty result on 2015-04-01 16:56:13 +03:00
locale.py Issue #22681: Added support for the koi8_t encoding. 2015-05-12 23:24:19 +03:00
lzma.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
macpath.py Issue #23780: Improved error message in os.path.join() with single argument. 2015-05-19 11:00:07 +03:00
macurl2path.py Increase the coverage of macurl2path. Patch by Colin Williams. 2013-10-23 21:50:56 -07:00
mailbox.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
mailcap.py Issue #20331: Fixed possible FD leaks in various modules: 2014-01-25 19:43:56 +02:00
mimetypes.py Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls 2015-03-10 13:17:21 -07:00
modulefinder.py Issue #23911: Move path-based bootstrap code to a separate frozen module. 2015-05-02 19:15:18 -06:00
netrc.py Merge #14984: only import pwd on POSIX. 2013-09-18 08:59:47 -04:00
nntplib.py Issue #22351: The nntplib.NNTP constructor no longer leaves the connection 2015-03-21 09:40:26 +02:00
ntpath.py Issue #23780: Improved error message in os.path.join() with single argument. 2015-05-19 11:00:07 +03:00
nturl2path.py Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
numbers.py Issue #21408: The default __ne__() now returns NotImplemented if __eq__() 2015-01-26 09:57:07 +02:00
opcode.py Issue #24400: Introduce a distinct type for 'async def' coroutines. 2015-06-22 12:19:30 -04:00
operator.py Issue #24379: Add operator.subscript() as a convenience for building slices. 2015-08-16 19:43:34 -07:00
optparse.py Issue #20315: Removed support for backward compatibility with early 2.x versions. 2014-01-20 21:29:31 +02:00
os.py merge 3.4 (#23929) 2015-04-13 20:25:11 -04:00
pathlib.py Issue #23146: Fix mishandling of absolute Windows paths with forward slashes in pathlib. 2015-02-15 18:06:54 +01:00
pdb.py merge from 3.4 2015-09-05 19:17:24 -04:00
pickle.py Issue #23611: Serializing more "lookupable" objects (such as unbound methods 2015-03-31 14:07:24 +03:00
pickletools.py Issue #19858: pickletools.optimize() now aware of the MEMOIZE opcode, can 2014-12-16 18:00:56 +02:00
pipes.py
pkgutil.py Issue #20383: Introduce importlib.util.module_from_spec(). 2014-05-30 14:55:29 -04:00
platform.py Issue #24839: platform._syscmd_ver raises DeprecationWarning 2015-08-10 20:57:37 -07:00
plistlib.py Issue #21888: plistlib's load() and loads() now work if the fmt parameter is 2014-07-23 18:49:31 +03:00
poplib.py #21804: Add RFC 6856 (UTF8) support to poplib. 2015-05-16 15:05:53 -04:00
posixpath.py Issue #23780: Improved error message in os.path.join() with single argument. 2015-05-19 11:00:07 +03:00
pprint.py Issue #18682: Optimized pprint functions for builtin scalar types. 2015-05-16 21:38:05 +03:00
profile.py Fix #17197: profile/cProfile modules refactored so that code of run() and runctx() utility functions is not duplicated in both modules. 2013-02-25 11:36:40 +01:00
pstats.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
pty.py Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) 2013-07-04 17:43:24 -04:00
py_compile.py Issue #23911: Move path-based bootstrap code to a separate frozen module. 2015-05-02 19:15:18 -06:00
pyclbr.py Issue 19944: Fix importlib.find_spec() so it imports parents as needed. 2014-01-25 15:32:46 -07:00
pydoc.py Issue #24879: Teach pydoc to display named tuple fields in the order they were defined. 2015-08-18 22:25:16 -07:00
queue.py Issue #22043: time.monotonic() is now always available 2014-09-02 23:18:25 +02:00
quopri.py Issue #23681: Fixed Python 2 to 3 poring bugs. 2015-03-20 16:46:19 +02:00
random.py merge 2014-05-25 17:28:38 -07:00
re.py Issue #22364: Improved some re error messages using regex for hints. 2015-03-25 21:03:47 +02:00
reprlib.py Issue #22824: Simplify reprlib output format for empty arrays 2014-11-15 10:58:58 -08:00
rlcompleter.py Issue #23441: rcompleter now prints a tab character instead of displaying 2015-07-28 00:06:31 +03:00
runpy.py Issue #23911: Move path-based bootstrap code to a separate frozen module. 2015-05-02 19:15:18 -06:00
sched.py Issue #24878: Add docstrings to selected namedtuples 2015-08-17 22:04:45 -07:00
selectors.py Issue #24878: Add docstrings to selected namedtuples 2015-08-17 22:04:45 -07:00
shelve.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
shlex.py Issue #24113: Remove unreachable code in shlex. 2015-05-04 22:45:47 -04:00
shutil.py Issue #24982: shutil.make_archive() with the "zip" format now adds entries 2015-09-08 05:53:42 +03:00
signal.py issue23673 2015-03-18 17:27:57 -07:00
site.py Fixes sys.path for applocal environments. 2015-07-17 11:59:21 -07:00
smtpd.py #21795: advertise 8BITMIME if decode_data is False. 2015-05-11 12:11:40 -04:00
smtplib.py - Issue #15014: SMTP.auth() and SMTP.login() now support RFC 4954's optional 2015-07-09 10:39:55 -04:00
sndhdr.py Issue #24878: Add docstrings to selected namedtuples 2015-08-17 22:04:45 -07:00
socket.py issue23673 2015-03-18 18:19:30 -07:00
socketserver.py Issue #23285: PEP 475 -- Retry system calls failing with EINTR. 2015-02-07 13:27:50 +00:00
sre_compile.py Issue #24426: Fast searching optimization in regular expressions now works 2015-06-21 14:06:55 +03:00
sre_constants.py Issue #22831: Use "with" to avoid possible fd leaks. 2015-04-04 11:01:02 +03:00
sre_parse.py Issue #24580: Symbolic group references to open group in re patterns now are 2015-07-18 23:27:00 +03:00
ssl.py issue23673 2015-03-18 17:27:57 -07:00
stat.py Issue #21741: Add st_file_attributes to os.stat_result on Windows. 2014-06-19 09:46:37 -05:00
statistics.py Issue #22823: Use set literals instead of creating a set from a list 2014-11-09 15:56:33 -08:00
string.py Reverting my previous commit. 2015-05-30 10:57:56 -04:00
stringprep.py
struct.py Issue #17804: New function `struct.iter_unpack` allows for streaming struct unpacking. 2013-04-27 00:20:04 +02:00
subprocess.py Add a subprocess.run() function than returns a CalledProcess instance for a 2015-04-14 16:14:25 -07:00
sunau.py Corrected docstrings of audio modules. writeframes() accepts bytes, not str. 2015-07-10 22:13:40 +03:00
symbol.py Issue 24297: Update symbol.py. See also issue 24017. 2015-05-27 11:08:19 -04:00
symtable.py remove the concept of an unoptimized function scope from the compiler, since it can't happen anymore 2015-04-27 21:44:22 -04:00
sysconfig.py Closes #23437: Make user scripts directory versioned on Windows (patch by pmoore) 2015-02-14 09:50:59 -08:00
tabnanny.py Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
tarfile.py Merge with 3.4: Issue #24259: tarfile now raises a ReadError if an archive is truncated inside a data segment. 2015-07-06 09:29:41 +02:00
telnetlib.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
tempfile.py Issue 24230: The tempfile module now accepts bytes for prefix, suffix and dir 2015-05-22 16:18:14 -07:00
textwrap.py Escaped backslashes in docstrings. 2015-04-03 18:13:23 +03:00
this.py
threading.py Merge: #11866: Eliminate race condition in the computation of names for new threads. 2014-10-04 17:45:15 -04:00
timeit.py Issue #23552: Timeit now warns when there is substantial (4x) variance 2015-08-26 12:40:28 +12:00
token.py PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
tokenize.py Issue #24619: Simplify async/await tokenization. 2015-07-23 15:01:58 +03:00
trace.py Issue #23731: Implement PEP 488. 2015-04-13 14:21:02 -04:00
traceback.py Issue #24710: Use cls in TracebackException.from_exception. 2015-07-26 06:50:51 +12:00
tracemalloc.py Issue #23731: Implement PEP 488. 2015-04-13 14:21:02 -04:00
tty.py
turtle.py Issue #6639: Module-level turtle functions no longer raise TclError after 2015-02-22 17:25:33 +02:00
types.py Issue #24400: Resurrect inspect.isawaitable() 2015-07-03 13:11:35 -04:00
typing.py Fix issue #24635. 2015-09-04 12:15:54 -07:00
uu.py
uuid.py Issue #24634: Importing uuid should not try to load libc on Windows 2015-07-14 13:25:03 -07:00
warnings.py Issue #24305: Prevent import subsystem stack frames from being counted 2015-09-06 00:39:37 -07:00
wave.py Corrected docstrings of audio modules. writeframes() accepts bytes, not str. 2015-07-10 22:13:40 +03:00
weakref.py Closes #21173: Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive. 2014-10-05 20:04:06 +02:00
webbrowser.py Issue #25005: Backout fix for #8232 because of use of unsafe subprocess.call(shell=True) 2015-09-05 11:57:47 -07:00
xdrlib.py Issue #11694: Raise ConversionError in xdrlib as documented 2014-10-10 21:21:52 +03:00
zipapp.py #23657 Don't explicitly do an isinstance check for str in zipapp 2015-03-22 15:32:36 +00:00
zipfile.py Issue #23731: Implement PEP 488. 2015-04-13 14:21:02 -04:00