Commit Graph

8477 Commits

Author SHA1 Message Date
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
Georg Brandl a86b262d1e Fix bad inheritance in test_subprocess that led to a number of tests being executed twice. 2012-02-20 21:34:57 +01:00
Georg Brandl 09a7c72cad Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.

The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 21:31:46 +01:00
Benjamin Peterson a3ed11bd34 don't rely on the order of module clearing 2012-02-20 15:20:37 -05:00
Georg Brandl 2daf6ae249 Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.

The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 19:54:16 +01:00
Jesus Cea fbc6f943e0 Test for issue #13500 2012-02-19 03:54:29 +01:00
Charles-François Natali cd96b4f1ff Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.
2012-02-18 14:53:41 +01:00
Charles-François Natali f670ca5e70 Issue #13878: Fix random test_sched failures. 2012-02-16 19:49:48 +01:00
Gregory P. Smith a124a688a2 don't use assertSameElements. 2012-02-16 00:34:12 -08:00
Gregory P. Smith 05f5953ab4 Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF. 2012-02-16 00:29:12 -08:00
Victor Stinner 5c724a804a Issue #13913: Another fix test_pep3120 for the UTF-8 codec name 2012-02-15 23:44:03 +01:00
Victor Stinner 1303298d06 Issue #13913: Fix test_pep3120 for the UTF-8 codec name 2012-02-15 22:24:17 +01:00
Antoine Pitrou 2640b52237 Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Patch by Hynek Schlawack.
2012-02-15 18:53:18 +01:00
Antoine Pitrou 71135624d8 Issue #10287: nntplib now queries the server's CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode.
Patch by Hynek Schlawack.
2012-02-14 23:29:34 +01:00
Ezio Melotti e31ddedb0e Fix an index and clean up comments. 2012-02-13 20:20:00 +02:00
Ezio Melotti f4ab491901 Improve handling of declarations in HTMLParser. 2012-02-13 15:50:37 +02:00
Ezio Melotti 86f67123be Fix htmlparser tests to always use the right collector. 2012-02-13 14:11:27 +02:00
Ezio Melotti 5211ffe4df #13993: HTMLParser is now able to handle broken end tags when strict=False. 2012-02-13 11:24:50 +02:00
Antoine Pitrou 54411c1784 Issue #10287: nntplib now queries the server's CAPABILITIES again after authenticating (since the result may change, according to RFC 4643).
Patch by Hynek Schlawack.
2012-02-12 19:14:17 +01:00
Ezio Melotti fa3702dc28 #13960: HTMLParser is now able to handle broken comments when strict=False. 2012-02-10 10:45:44 +02:00
Charles-François Natali b2c9e9ad91 Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
can't be called reliably from a worker thread.
2012-02-08 21:29:11 +01:00
Ned Deily d531b295f2 Issue #10881: Fix test_site failure with OS X framework builds. 2012-02-06 00:58:18 +01:00
Antoine Pitrou f99f3339fd Fix failing test on big-endian machines (issue #13806). 2012-02-04 16:44:21 +01:00
Ned Deily 3429491950 Issue #13861: Prevent test_apropos* test case failures in test_pydoc. 2012-02-03 23:14:37 +01:00
Charles-François Natali 227e377b36 Merge. 2012-02-02 20:37:29 +01:00
Charles-François Natali 6d0d24e359 Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix
a random deadlock when fork() is called in a multithreaded process in debug
mode, and make PyOS_AfterFork() more robust.
2012-02-02 20:31:42 +01:00
Petri Lehtinen 9713321f46 Document absoluteness of sys.executable
Closes #13402.
2012-02-02 20:59:50 +02:00
Stefan Krah 03c29f90c3 Issue #1813: Revert workaround for a glibc bug on the Fedora buildbot. 2012-02-02 16:40:52 +01:00
Antoine Pitrou 1334884ff2 Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name.
Patch by Hynek Schlawack.
2012-01-29 18:36:34 +01:00
Benjamin Peterson 3cd4607176 remove tests from really old regex module 2012-01-28 20:33:21 -05:00
Antoine Pitrou 75ff65ef96 Issue #13806: The size check in audioop decompression functions was too strict and could reject valid compressed data.
Patch by Oleg Plakhotnyuk.
2012-01-28 22:01:59 +01:00
Antoine Pitrou eba63c4203 Issue #13895: fix test_ssl hanging under Ubuntu 2012-01-28 17:38:34 +01:00
Charles-François Natali 6b671b2591 Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch
by Matt Joiner.
2012-01-28 11:36:04 +01:00