Serhiy Storchaka
8b56292079
Issue #18223 : Refactor test_tarfile.
...
* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
and some other minor enhancements.
2013-06-17 15:38:50 +03:00
Andrew Kuchling
53e5ea7951
#18113 : Objects associated to a curses.panel object with set_userptr() were leaked.
...
Reported by Atsuo Ishimoto.
2013-06-15 14:04:04 -04:00
Serhiy Storchaka
31b1c8bbde
Add tests for issue #18183 .
2013-06-12 09:20:44 +03:00
Benjamin Peterson
7e30373126
remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value (see #18183 )
2013-06-10 09:19:46 -07:00
Richard Oudkerk
0e547b66dc
Issue #18174 : Fix fd leaks in tests.
2013-06-10 16:29:19 +01:00
Ronald Oussoren
a822d36675
Ensure that the fix for #17269 also works on OSX 10.4
...
AI_NUMERICSERV isn't defined on OSX 10.4.
2013-06-10 10:36:28 +02:00
Serhiy Storchaka
3af14aaba5
Issue #18038 : SyntaxError raised during compilation sources with illegal
...
encoding now always contains an encoding name.
2013-06-09 16:51:52 +03:00
Ezio Melotti
28b0d9d13e
#17691 : test_univnewlines now works with unittest test discovery. Patch by Zachary Ware.
2013-06-09 00:07:06 +03:00
Serhiy Storchaka
7d15b54f37
Issue #18094 : test_uuid no more reports skipped tests as passed.
2013-05-31 22:31:02 +03:00
Stefan Krah
891ca9e06a
Backport bff16086f03b and bcaaaa00425b.
2013-05-29 19:14:17 +02:00
Stefan Krah
6edda14b29
Issue #17768 : Support newline fill character in decimal.py and NUL fill
...
character in _decimal.c.
2013-05-29 15:45:38 +02:00
Senthil Kumaran
c70a6ae49b
#17403 : urllib.parse.robotparser normalizes the urls before adding to ruleline.
...
This helps in handling certain types invalid urls in a conservative manner.
2013-05-29 05:54:31 -07:00
Terry Jan Reedy
eb4c9c77b8
Issue #15392 : Do not run tests if threading/_thread not available. Otherwise
...
touchup test_idle. Rename README.txt.
2013-05-28 22:21:53 -04:00
Serhiy Storchaka
37a79a12d1
Issue #18025 : Fixed a segfault in io.BufferedIOBase.readinto() when raw
...
stream's read() returns more bytes than requested.
2013-05-28 16:24:45 +03:00
Serhiy Storchaka
12516e2c1b
Issue #17746 : Skip test_shutil.test_non_matching_mode when run as root or
...
on unsuitable platform/environment.
2013-05-28 15:50:15 +03:00
Serhiy Storchaka
ea2b490f3d
Issue #18011 : base64.b32decode() now raises a binascii.Error if there are
...
non-alphabet characters present in the input string to conform a docstring.
Updated the module documentation.
2013-05-28 15:27:29 +03:00
Jason R. Coombs
b501b565c6
Use simple call to os.symlink for broken link (intended for previous commit)
2013-05-27 23:52:43 -04:00
Jason R. Coombs
3a09286790
Issue #13772 : Restored directory detection of targets in `os.symlink` on Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory.
2013-05-27 23:21:28 -04:00
Terry Jan Reedy
db4e5c53c9
Issue #15392 : Create a unittest framework for IDLE.
...
Preliminary patch by Rajagopalasarma Jayakrishnan.
2013-05-27 21:32:03 -04:00
Antoine Pitrou
80bc00f582
Issue #18063 : fix some struct specifications in the tests for sys.getsizeof().
2013-05-25 23:47:29 +02:00
Eli Bendersky
4ace240fe5
Clean-up duplicated code in tests
2013-05-25 07:12:14 -07:00
Eli Bendersky
6dc32b34dd
Issue #13612 : handle unknown encodings without a buffer overflow.
...
This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new
function - DefaultUnknownEncodingHandler.
Based on a patch by Serhiy Storchaka.
2013-05-25 05:25:48 -07:00
Antoine Pitrou
6b5a38c728
Fix test_bad_address on Ubuntu 13.04
2013-05-25 13:08:13 +02:00
Ronald Oussoren
27a4ac535f
Issue #17269 : Workaround for a platform bug in getaddrinfo on OSX
...
Without this patch socket.getaddrinfo crashed when called
with some unusual argument combinations.
2013-05-24 13:47:37 +02:00
Benjamin Peterson
6724612755
add test for inequality
2013-05-22 13:27:25 -07:00
Serhiy Storchaka
66d53fa9ad
Issue #16986 : ElementTree now correctly parses a string input not only when
...
an internal XML encoding is UTF-8 or US-ASCII.
2013-05-22 17:07:51 +03:00
Benjamin Peterson
611d901289
add recursive repr test
2013-05-19 19:39:38 -07:00
Antoine Pitrou
dc49b2b88c
Try to make test more reliable (saw some sporadic failures on buildbots)
2013-05-19 15:55:40 +02:00
Antoine Pitrou
916fc7bf28
Issue #11995 : test_pydoc doesn't import all sys.path modules anymore.
2013-05-19 15:44:54 +02:00
Eli Bendersky
08231a9c6a
Issue #17901 : fix TreeBuilder construction for an explicit element_factory=None
...
Based on report and patch by Aaron Oakley.
2013-05-18 15:47:16 -07:00
Richard Oudkerk
90a24270f8
Close file before reopening to keep Windows happy in test_sax.
2013-05-18 18:11:30 +01:00
Antoine Pitrou
636f93c63b
Issue #17980 : Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
2013-05-18 17:56:42 +02:00
Benjamin Peterson
d2b58a9880
only recursively expand in the format spec ( closes #17644 )
2013-05-17 17:34:30 -05:00
Benjamin Peterson
1e93b06007
complain about "global __class__" in a class body ( closes #17983 )
2013-05-15 16:17:25 -05:00
Benjamin Peterson
e1b4cbc422
when arguments are cells clear the locals slot (backport of #17927 )
2013-05-14 22:31:26 -05:00
Antoine Pitrou
2adb6fe246
Fix ResourceWarnings in test_sax
2013-05-13 22:34:21 +02:00
Serhiy Storchaka
3eab6b363a
Issue #17606 : Fixed support of encoded byte strings in the XMLGenerator
...
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:31:16 +03:00
Georg Brandl
b3bd624a55
Back out patch for #1159051 , which caused backwards compatibility problems.
2013-05-12 11:57:26 +02:00
Georg Brandl
64949fa20e
merge with 3.2
2013-05-12 11:52:22 +02:00
Georg Brandl
c502df4e3e
Issue #17915 : Fix interoperability of xml.sax with file objects returned by
...
codecs.open().
2013-05-12 11:41:12 +02:00
Georg Brandl
93b061bc3e
Issue #1159051 : Back out a fix for handling corrupted gzip files that
...
broke backwards compatibility.
2013-05-12 11:29:27 +02:00
Benjamin Peterson
aa6f688bd4
only close non-None files
2013-05-11 16:29:03 -05:00
Ezio Melotti
ce82d57c74
#17809 : fix a test failure in test_expanduser when $HOME has a trailing /. Patch by Kubilay Kocak.
2013-05-09 15:19:45 +03:00
Serhiy Storchaka
263fab94ee
Issue #16601 : Restarting iteration over tarfile no more continues from where
...
it left off. Patch by Michael Birtwell.
2013-05-09 14:22:26 +03:00
Ezio Melotti
6bcc0f1b51
#17877 : skip test if the Olson's TZ database is missing.
2013-05-08 11:16:02 +03:00
Brett Cannon
dea2ec4b1d
Fix a test to not use an assertion for something that could be
...
legitimately false.
2013-05-04 18:11:12 -04:00
Ezio Melotti
28faf03d44
#7855 : Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland.
2013-05-04 17:46:23 +03:00
Serhiy Storchaka
59115aa7c9
Issue #16316 : mimetypes now recognizes the .xz and .txz (.tar.xz) extensions.
2013-05-04 15:12:55 +03:00
Brett Cannon
9d0f772c51
Issue #15902 : Fix imp.load_module() to accept None as a file when
...
trying to load an extension module.
While at it, also add a proper unittest.skipIf() guard to another test
involving imp.load_dynamic().
2013-05-03 10:37:08 -04:00
Raymond Hettinger
b98dcc1f53
Issue #15535 : Fix pickling of named tuples.
2013-05-03 02:24:15 -07:00