Commit graph

8709 commits

Author SHA1 Message Date
Benjamin Peterson
6215444a0a remove uneeded line 2012-04-02 14:22:50 -04:00
Benjamin Peterson
e900096dc4 prevent writing to stderr from messing up the exception state (closes #14474) 2012-04-02 11:15:17 -04:00
Antoine Pitrou
709176f10c Issue #14151: Raise a ValueError, not a NameError, when trying to create
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms.  Patch by Popa Claudiu.
2012-04-01 17:19:09 +02:00
Antoine Pitrou
70deb3de39 Issue #13872: socket.detach() now marks the socket closed (as mirrored in the socket repr()).
Patch by Matt Joiner.
2012-04-01 01:00:17 +02:00
Antoine Pitrou
f70401e842 Issue #14406: Fix a race condition when using concurrent.futures.wait(return_when=ALL_COMPLETED).
Patch by Matt Joiner.
2012-03-31 20:23:30 +02:00
Charles-François Natali
8e6fe648cc Issue #13902: Fix a random test_threading failure on FreeBSD 6 buildbots (due
to a known bug in pthread implementation on FreeBSD < 7).
2012-03-24 20:36:09 +01:00
Giampaolo Rodola'
a3481e70d1 attempt to fix asyncore buildbot failure 2012-03-23 15:07:07 +01:00
Giampaolo Rodola'
350c94b900 fix #10340: properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect. 2012-03-22 16:17:43 +01:00
Benjamin Peterson
a4e4e35783 check by equality for __future__ not identity (closes #14378) 2012-03-22 08:19:04 -04:00
R David Murray
c6bfce9871 #14333: fix test_queue so it can be run via standard unittest test discovery. 2012-03-17 16:38:39 -04:00
Benjamin Peterson
16d84ac355 check to make sure the attribute is a string (#14334) 2012-03-16 09:32:59 -05:00
Senthil Kumaran
be3f851411 closes issue10484 - Fix the http.server's cgi PATH_INFO handling problem 2012-03-16 01:13:50 -07:00
R David Murray
7441a7aedd #14291: if a header has non-ascii unicode, default to CTE using utf-8
In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.

Patch by Ali Ikinci, assisted by R. David Murray.

I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error.  It now uses support.patch to induce an error during
message serialization.
2012-03-14 02:59:51 -04:00
Senthil Kumaran
47b5ddb9cf 3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers 2012-03-13 01:50:27 -07:00
Ezio Melotti
df723e1e5e #14179: add tests for re.compile. Patch by Florian Mladitsch. 2012-03-13 01:29:48 +02:00
Eric V. Smith
1d4798cb93 Merge heads. 2012-03-12 15:18:30 -07:00
Eric V. Smith
edbb6ca084 str.format_map tests don't do what they say: fix to actually implement the intent of the test. Closes #13450. 2012-03-12 15:16:22 -07:00
Ezio Melotti
85769539a3 #13394: add more tests for the aifc module. Patch by Oleg Plakhotnyuk. 2012-03-12 23:52:40 +02:00
Benjamin Peterson
ef87f06798 allow AST objects to be like its subclasses 2012-03-12 09:43:09 -07:00
Benjamin Peterson
d279e286f2 every other ast object has a dict, so I think AST should, too 2012-03-12 09:27:36 -07:00
Antoine Pitrou
1f9a835400 Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited. 2012-03-11 19:29:12 +01:00
Benjamin Peterson
52c424343d allow cycles throught the __dict__ slot to be cleared (closes #1469629)
Patch from Armin, test from me.
2012-03-07 18:41:11 -06:00
Benjamin Peterson
e48944b69c keep the buffer object around while we're using it (closes #14212) 2012-03-07 14:50:25 -06:00
Éric Araujo
420f698d6e Backport minidom attribute tests from default (73c76466cf44).
Some minidom code changed between 3.2 and 3.3, so to be sure to avoid
differenced in behavior I’m backporting these tests added by MvL.
2012-03-05 16:11:41 +01:00
Meador Inge
653f932eff Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive. 2012-03-04 22:15:38 -06:00
Antoine Pitrou
9c47ac05d1 Fix some set algebra methods of WeakSet objects. 2012-03-04 20:47:05 +01:00
Antoine Pitrou
4a90ef0363 Issue #14177: marshal.loads() now raises TypeError when given an unicode string.
Patch by Guilherme Gonçalves.
2012-03-03 02:35:32 +01:00
Antoine Pitrou
679e9d36f7 Issue #14172: Fix reference leak when marshalling a buffer-like object (other than a bytes object). 2012-03-02 18:12:43 +01:00
Vinay Sajip
f959618142 Closes #14158: improved resilience to test files left behind. 2012-03-02 01:01:13 +00:00
Antoine Pitrou
bbe2f60b3c Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, WeakValueDictionary) to return a better approximation when some objects are dead or dying.
Moreover, the implementation is now O(1) rather than O(n).
Thanks to Yury Selivanov for reporting.
2012-03-01 16:26:35 +01:00
Ezio Melotti
682d37423d #14089: increase coverage of the fractions module. Patch by Oleg Plakhotnyuk. 2012-02-29 14:05:53 +02:00
Ezio Melotti
5a045b9f54 #10713: Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool. 2012-02-29 11:48:44 +02:00
Nadeem Vawda
aba2b06001 Give better failure messages in test_strptime (cf. issue #14113). 2012-02-29 00:22:09 +02:00
Antoine Pitrou
f12b4475cc Merge 2012-02-27 01:01:44 +01:00
Antoine Pitrou
e965d97ed1 Issue #13521: dict.setdefault() now does only one lookup for the given key, making it "atomic" for many purposes.
Patch by Filip Gruszczyński.
2012-02-27 00:45:12 +01:00
Nadeem Vawda
05a4dd83af Issue #13873: Fix crash in test_zlib when running on a small (<4GB) tmpfs. 2012-02-27 00:42:58 +02:00
Éric Araujo
b46562480b Add test file for scripts in Tools (#13447).
When people find bugs in scripts such as reindent.py, msgfmt.py or
pygettext.py, we have to try to reproduce the bug manually, apply a fix
and test manually again.  The alternative is to only read the code and
trust that it works.  This test file is a way to stop that
unsatisfactory state of things and write proper unit tests instead.
2012-02-25 16:57:04 +01:00
Antoine Pitrou
c09424255a Fix (presumably) test_hash under big-endian systems (PPC). 2012-02-22 03:33:56 +01:00
Ezio Melotti
29877e8e04 HTMLParser is now able to handle slashes in the start tag. 2012-02-21 09:25:00 +02:00
Georg Brandl
178e5ea305 Disable an inspect test: it depends on dict ordering which parameter is reported as duplicate. 2012-02-21 00:32:36 +01:00
Antoine Pitrou
95a97b7c0c Delete the iterator, which could accidentally keep a temporary reference to the yielded element. 2012-02-21 00:00:06 +01:00
Antoine Pitrou
e9f637b062 Make "regrtest -j" "-R"-aware 2012-02-20 23:49:07 +01:00
Georg Brandl
e5a0e0a75f Fix obscure failures of datetime-related tests due to the datetime tests failing to restore the system state completely after testing the pure-Python versions. 2012-02-20 23:37:36 +01:00
Georg Brandl
16684eb624 Fix dbm_gnu test relying on set order. 2012-02-20 22:48:06 +01:00
Georg Brandl
61470246d0 Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn't preserve Python flags and fails from a temp directory. 2012-02-20 22:06:02 +01:00
Georg Brandl
27fe226eb1 Another test_dis dict order dependency. 2012-02-20 22:03:28 +01:00
Georg Brandl
b9dafe618f Merge with 3.1. 2012-02-20 21:43:25 +01:00
Georg Brandl
a108227c47 Fix test_dis dependency on dict order. 2012-02-20 21:41:03 +01:00
Georg Brandl
c425a94899 Fix use of deprecated assert_ method. 2012-02-20 21:37:22 +01:00
Georg Brandl
242631da86 Fix "sys.path modified" warning in test_strlit, by not replacing sys.path itself, only its contents. 2012-02-20 21:36:28 +01:00