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
Victor Stinner
643cd68ea4
Issue #13964 : signal.sigtimedwait() timeout is now a float instead of a tuple
...
Add a private API to convert an int or float to a C timespec structure.
2012-03-02 22:54:03 +01:00
Antoine Pitrou
b2677c7397
Issue #14172 : Fix reference leak when marshalling a buffer-like object (other than a bytes object).
2012-03-02 18:16:38 +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
2f24d98df0
Closes #14158 : merged test file resilience fix from 3.2.
2012-03-02 01:24:13 +00:00
Vinay Sajip
f959618142
Closes #14158 : improved resilience to test files left behind.
2012-03-02 01:01:13 +00:00
Antoine Pitrou
0836baa46a
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:28:14 +01: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
Philip Jenvey
d7aff2d696
update skip reason
2012-02-29 16:21:25 -08:00
Philip Jenvey
e308b7c0c0
also skip test_device_encoding when stdin isn't a tty
2012-02-29 16:16:15 -08:00
Brett Cannon
efb00c0cc1
Issue #14153 Create _Py_device_encoding() to prevent _io from having to import
...
the os module.
2012-02-29 18:31:31 -05:00
Ezio Melotti
aba0b13f0a
#14089 : merge with 3.2.
2012-02-29 14:06:56 +02: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
0b8123d8ae
#10713 : merge with 3.2.
2012-02-29 11:49:45 +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
3692453a2d
Merge: Give better failure messages in test_strptime (cf. issue #14113 ).
2012-02-29 00:24:46 +02:00
Nadeem Vawda
aba2b06001
Give better failure messages in test_strptime (cf. issue #14113 ).
2012-02-29 00:22:09 +02:00
Vinay Sajip
19b1d50732
Added additional diagnostics to help with #12151 .
2012-02-28 19:02:43 +00:00
Antoine Pitrou
9a4d7ddb6c
More debug output
2012-02-27 22:01:25 +01:00
Antoine Pitrou
ffd85c8182
Improve debugging output for test failure
2012-02-27 20:04:05 +01:00
Stefan Krah
0509d9418a
Issue #14113 : Fix a test_strptime failure caused by changes to LC_ALL.
2012-02-27 10:18:51 +01:00
Antoine Pitrou
f12b4475cc
Merge
2012-02-27 01:01:44 +01:00
Antoine Pitrou
70d2717f2e
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:59:34 +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
Antoine Pitrou
4f92a68a81
Issue #14080 : fix sporadic test_imp failure. Patch by Stefan Krah.
2012-02-26 18:09:50 +01:00
Charles-François Natali
9578757ec4
Issue #14107 : test: Fix a deadlock involving the memory watchdog thread.
2012-02-26 17:27:32 +01:00
Nick Coghlan
ab7bf2143e
Close issue #6210 : Implement PEP 409
2012-02-26 17:49:52 +10:00
Ezio Melotti
cda6b6d60d
#14081 : The sep and maxsplit parameter to str.split, bytes.split, and bytearray.split may now be passed as keyword arguments.
2012-02-26 09:39:55 +02:00
Éric Araujo
f71654521b
Merge from 3.2
2012-02-25 17:26:44 +01: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
Nadeem Vawda
afdac030e3
Use assertEqual in test_strptime for better failure messages (cf. issue #14113 ).
2012-02-25 15:58:36 +02:00
Stefan Krah
9a2d99e28a
- Issue #10181 : New memoryview implementation fixes multiple ownership
...
and lifetime issues of dynamically allocated Py_buffer members (#9990 )
as well as crashes (#8305 , #7433 ). Many new features have been added
(See whatsnew/3.3), and the documentation has been updated extensively.
The ndarray test object from _testbuffer.c implements all aspects of
PEP-3118, so further development towards the complete implementation
of the PEP can proceed in a test-driven manner.
Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review
and many ideas.
- Issue #12834 : Fix incorrect results of memoryview.tobytes() for
non-contiguous arrays.
- Issue #5231 : Introduce memoryview.cast() method that allows changing
format and shape without making a copy of the underlying memory.
2012-02-25 12:24:21 +01:00
Victor Stinner
6f73874edd
Close #14095 : type.__new__() doesn't remove __qualname__ key from the class
...
dict anymore if the key is present. Reject also non-string qualified names.
And fix reference leaks in type.__new__().
2012-02-25 01:22:36 +01:00
Victor Stinner
abc649ddbe
Issue #14107 : fix bigmem tests on str.capitalize(), str.swapcase() and
...
str.title(). Compute correctly how much memory is required for the test
(memuse).
2012-02-25 00:43:27 +01:00
Victor Stinner
90f50d4df9
Issue #13706 : Fix format(float, "n") for locale with non-ASCII decimal point (e.g. ps_aF)
2012-02-24 01:44:47 +01:00
Victor Stinner
41a863cb81
Issue #13706 : Fix format(int, "n") for locale with non-ASCII thousands separator
...
* Decode thousands separator and decimal point using PyUnicode_DecodeLocale()
(from the locale encoding), instead of decoding them implicitly from latin1
* Remove _PyUnicode_InsertThousandsGroupingLocale(), it was not used
* Change _PyUnicode_InsertThousandsGrouping() API to return the maximum
character if unicode is NULL
* Replace MIN/MAX macros by Py_MIN/Py_MAX
* stringlib/undef.h undefines STRINGLIB_IS_UNICODE
* stringlib/localeutil.h only supports Unicode
2012-02-24 00:37:51 +01:00
Nadeem Vawda
197e22c1d7
Simplify zlib bigmem tests.
2012-02-23 14:23:17 +02:00
Nadeem Vawda
bc8c8175cc
Fix previous fix (for test_zlib) to work on 32-bit systems.
2012-02-23 14:16:15 +02:00
Nadeem Vawda
b063a48406
Issue #13873 : Fix crash in test_zlib on bigmem buildbot.
2012-02-23 13:36:25 +02:00
Ross Lagerwall
e7ad419058
Fix sporadic test_subprocess regression introduced by 834650d63130.
2012-02-22 06:02:07 +02:00
Antoine Pitrou
c09424255a
Fix (presumably) test_hash under big-endian systems (PPC).
2012-02-22 03:33:56 +01:00
Antoine Pitrou
679be99a85
Fix (presumably) test_hash under big-endian systems (PPC).
2012-02-22 03:33:56 +01:00
Antoine Pitrou
658d1963e1
Additional debug info in case of failure
2012-02-22 02:46:58 +01:00
Antoine Pitrou
037615e1ef
unload() should be sufficient
2012-02-22 02:30:09 +01:00
Antoine Pitrou
abe72d7eb3
Try to debug sporadic test failures
2012-02-22 01:11:31 +01:00
Benjamin Peterson
c9f54cf512
enable hash randomization by default
2012-02-21 16:08:05 -05:00
Antoine Pitrou
bc499d26a8
Actually run the new tests.
2012-02-21 19:18:10 +01:00
Antoine Pitrou
07c65884c6
Add a test that memoryviews have hash randomization enabled.
2012-02-21 19:14:26 +01:00
Ezio Melotti
307da2b070
Merge the HTMLParser fix with 3.2.
2012-02-21 09:29:10 +02:00
Ezio Melotti
29877e8e04
HTMLParser is now able to handle slashes in the start tag.
2012-02-21 09:25:00 +02:00
Benjamin Peterson
71f660e00f
update to Unicode 6.1
2012-02-20 22:24:29 -05:00
Georg Brandl
802505d05e
Merge more test vs hashing-order fixes from 3.2.
2012-02-21 00:34:05 +01:00
Georg Brandl
2fb477c0f0
Merge 3.2: Issue #13703 plus some related test suite fixes.
2012-02-21 00:33:36 +01: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
Antoine Pitrou
dff46faa95
Fix use of assertRaises following c760bd844222 (spotted by Alex Gaynor).
2012-02-20 19:46:26 +01:00
Antoine Pitrou
ea6b4d5f70
Issue #13641 : Decoding functions in the base64 module now accept ASCII-only unicode strings.
...
Patch by Catalin Iacob.
2012-02-20 19:30:23 +01:00
Antoine Pitrou
c541f8ef40
Issue #14043 : Speed up importlib's _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function.
...
importlib is now often faster than imp.find_module() at finding modules.
2012-02-20 01:48:16 +01:00
Benjamin Peterson
85c71ae882
fix test now that staticmethod and classmethod are bigger
2012-02-19 19:16:47 -05:00
Antoine Pitrou
c135fa424e
Fix last remaining build issues of _ssl under old OpenSSLs. Patch by Vinay.
2012-02-19 21:22:39 +01:00
Benjamin Peterson
b900d6a78c
initialize __dict__ if needed
2012-02-19 10:17:30 -05:00
Benjamin Peterson
01d7eba316
allow arbitrary attributes on classmethod and staticmethod ( closes #14051 )
2012-02-19 01:10:25 -05:00
Jesus Cea
fbc6f943e0
Test for issue #13500
2012-02-19 03:54:29 +01:00
Jesus Cea
14ed7f23c2
Test for issue #13500
2012-02-19 03:52:23 +01:00
Charles-François Natali
3ccc918b4a
Issue #14001 : CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
...
upon malformed POST request.
2012-02-18 15:02:10 +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
Florent Xicluna
1639505c38
fix the _namespace_map cleanup for cElementTree tests.
2012-02-16 23:28:35 +01:00
Florent Xicluna
e59a306081
The C accelerator was not always imported for cElementTree's tests. (there's still an issue with --huntrleaks switch)
2012-02-16 23:17:31 +01:00
Charles-François Natali
4a72ebe34b
Issue #13878 : Fix random test_sched failures.
2012-02-16 19:51:45 +01:00
Charles-François Natali
f670ca5e70
Issue #13878 : Fix random test_sched failures.
2012-02-16 19:49:48 +01:00
Eli Bendersky
292f9a891d
make TestAccelerator[Not]Imported for ElementTree more robust
2012-02-16 19:55:29 +02:00
Eli Bendersky
66e6f8e525
Disabling a test that fails on some bots. Will investigate the failure soon
2012-02-16 18:08:44 +02:00
Gregory P. Smith
5b791fb548
Issue #2489 : Fix bug in _copy loop that could consume 100% cpu on EOF.
2012-02-16 00:35:43 -08: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
Eli Bendersky
da57819efa
in the tests of ElementTree, verify that the C accelerator is imported or not imported as expected
2012-02-16 06:52:39 +02:00
Victor Stinner
4aec77617f
(Merge 3.2) Issue #13913 : Another fix test_pep3120 for the UTF-8 codec name
2012-02-15 23:45:34 +01: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
10e467c963
(Merge 3.2) Issue #13913 : Fix test_pep3120 for the UTF-8 codec name
2012-02-15 22:25:51 +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
482ee66cb7
Issue #7644 : Add tests for the file argument of NNTP.head() and NNTP.body().
...
Patch by Hynek Schlawack.
2012-02-15 18:53:49 +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
06b57ef958
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:30:35 +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
5e4d908704
Merge the indexfix and comments clean up.
2012-02-13 20:28:46 +02:00
Ezio Melotti
e31ddedb0e
Fix an index and clean up comments.
2012-02-13 20:20:00 +02:00
Ezio Melotti
610a0b673e
Merge fix for HTMLParser and improvements in declarations handling.
2012-02-13 15:52:25 +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
Florent Xicluna
6c3da6ebc2
Fix xml_etree_c test error (follow up of issue #13988 ).
2012-02-13 12:14:52 +01:00
Florent Xicluna
a72a98f24a
Issue #13988 : cElementTree is deprecated and the _elementtree accelerator is automatically used whenever available.
2012-02-13 11:03:30 +01:00
Ezio Melotti
d1c7b1afe8
#13993 : merge with 3.2.
2012-02-13 11:42:29 +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
425b8e85a9
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:15:09 +01: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
Ross Lagerwall
2f234db3eb
Merge with remote.
2012-02-12 11:13:06 +02:00
Ross Lagerwall
003c7a3fca
Fix a typo.
2012-02-12 09:02:01 +02:00
Ross Lagerwall
ab66d2a6cb
Attempt to speed up some subprocess tests (and hopefully keep them reliable).
2012-02-12 09:01:30 +02:00
Nadeem Vawda
ae557d767f
Fix seekable() in BZ2File and LZMAFile to check whether the underlying file supports seek().
2012-02-12 01:51:38 +02:00
Ezio Melotti
176630ec19
#13960 : merge with 3.2.
2012-02-10 10:50:49 +02:00
Ezio Melotti
fa3702dc28
#13960 : HTMLParser is now able to handle broken comments when strict=False.
2012-02-10 10:45:44 +02:00
Antoine Pitrou
81a1fa5c77
get_terminal_size() can also fail with ENOTTY if the fd is not connected to a terminal.
2012-02-09 00:11:00 +01:00
Antoine Pitrou
cfade36227
Relax tests to fix buildbot failure
2012-02-08 23:48:59 +01:00
Antoine Pitrou
bcf2b59fb5
Issue #13609 : Add two functions to query the terminal size:
...
os.get_terminal_size (low level) and shutil.get_terminal_size (high level).
Patch by Zbigniew Jędrzejewski-Szmek.
2012-02-08 23:28:36 +01:00
Victor Stinner
4195b5caea
Backout f8409b3d6449: the PEP 410 is not accepted yet
2012-02-08 23:03:19 +01: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
Victor Stinner
ccd5715a14
PEP 410
2012-02-08 14:31:50 +01:00
Charles-François Natali
6f91ce74a0
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:30:02 +01:00
Charles-François Natali
ed4a8fc095
Issue #8184 : multiprocessing: On Windows, don't set SO_REUSEADDR on Connection
...
sockets, and set FILE_FLAG_FIRST_PIPE_INSTANCE on named pipes, to make sure two
listeners can't bind to the same socket/pipe (or any existing socket/pipe).
2012-02-08 21:15:58 +01:00
Victor Stinner
1aa54a417d
Issue #13964 : Skip os.*utime*() tests if os.stat() doesn't support timestamp
...
with a subsecond resolution
2012-02-08 04:09:37 +01:00
Victor Stinner
a2f7c00638
Issue #13964 : Split os.*utime*() subsecond tests into multiple tests to help
...
debugging
2012-02-08 03:36:25 +01:00
Victor Stinner
8b6f10dda2
Issue #13964 : Test also os.futimesat()
2012-02-08 03:07:25 +01:00
Victor Stinner
be557dedf9
Issue #13964 : Write tests for new os.*utime*() functions
2012-02-08 03:01:11 +01:00
Victor Stinner
8b30201f7d
Issue #13846 : Add time.monotonic(), monotonic clock.
2012-02-07 23:29:46 +01:00
Charles-François Natali
7794090251
Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), to
...
be consistent with other functions accepting file descriptors (fdlistdir() was
added in 3.3, so hasn't been released yet).
2012-02-06 19:54:48 +01:00
Ned Deily
6b1aecfdbf
Issue #10881 : merge
2012-02-06 01:00:05 +01:00
Ned Deily
d531b295f2
Issue #10881 : Fix test_site failure with OS X framework builds.
2012-02-06 00:58:18 +01:00
Charles-François Natali
7372b06cd7
Issue #13734 : Add os.fwalk(), a directory walking function yielding file
...
descriptors.
2012-02-05 15:15:38 +01:00
Antoine Pitrou
672b3ac2f0
Fix failing test on big-endian machines (issue #13806 ).
2012-02-04 16:49:31 +01:00
Antoine Pitrou
f99f3339fd
Fix failing test on big-endian machines (issue #13806 ).
2012-02-04 16:44:21 +01:00
Ned Deily
f16d6771c7
Issue #13861 : merge
2012-02-03 23:16:11 +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
3f32fc87ad
Merge.
2012-02-02 20:38:10 +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
4b0eab62f0
Merge branch 3.2
...
Closes #13402 .
2012-02-02 21:23:15 +02:00
Petri Lehtinen
9713321f46
Document absoluteness of sys.executable
...
Closes #13402 .
2012-02-02 20:59:50 +02:00
Stefan Krah
c317a1c185
Issue #1813 : merge changeset that reverts a glibc workaround for the
...
Fedora buildbot.
2012-02-02 16:50:10 +01: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
f3b2d88b67
Issue #8828 : Add new function os.replace(), for cross-platform renaming with overwriting.
2012-01-30 22:08:52 +01:00
Victor Stinner
2d6251c7f7
Issue #13847 : Fix test_time, time.gmtime() doesn't use localtime()
...
On Windows, localtime(-1) fails, but not gmtime(1).
2012-01-30 00:23:32 +01:00
Antoine Pitrou
7ab4af0427
Issue #13848 : open() and the FileIO constructor now check for NUL characters in the file name.
...
Patch by Hynek Schlawack.
2012-01-29 18:43:36 +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
df13b5fae1
merge 3.2
2012-01-28 20:33:52 -05:00
Benjamin Peterson
3cd4607176
remove tests from really old regex module
2012-01-28 20:33:21 -05:00
Antoine Pitrou
04d9dd06aa
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:02:47 +01: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
ce816a5111
Issue #13895 : fix test_ssl hanging under Ubuntu
2012-01-28 17:40:23 +01:00
Antoine Pitrou
eba63c4203
Issue #13895 : fix test_ssl hanging under Ubuntu
2012-01-28 17:38:34 +01:00
Nadeem Vawda
d770fe45a0
Fix typo in comment.
2012-01-28 17:32:47 +02:00
Charles-François Natali
9ab91c60b2
Issue #13894 : Skip test_threading.CRLockTests if _CRLock isn't available. Patch
...
by Matt Joiner.
2012-01-28 11:37:42 +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
Antoine Pitrou
6636887104
Fix intermittent test_ssl failure.
2012-01-27 17:34:56 +01:00
Antoine Pitrou
eced82ecbf
Fix intermittent test_ssl failure.
2012-01-27 17:33:01 +01:00
Antoine Pitrou
2d843d2520
Issue #13812 : When a multiprocessing Process child raises an exception, flush stderr after printing the exception traceback.
2012-01-27 10:53:35 +01:00
Antoine Pitrou
84a0fbf6b0
Issue #13812 : When a multiprocessing Process child raises an exception, flush stderr after printing the exception traceback.
2012-01-27 10:52:37 +01:00
Victor Stinner
53d3645f95
Issue #13847 : Make test_localtime_failure() more robust
...
Skip the test if we are unable to find an invalid time_t value.
2012-01-27 01:03:25 +01:00
Victor Stinner
2cbae98ea4
Issue #13847 : Fix test_mktime(), time.localtime() now raises OSError
2012-01-27 00:50:33 +01:00
Victor Stinner
c1b5d34ede
Issue #13847 : time.localtime() and time.gmtime() now raise an OSError instead
...
of ValueError on failure. time.ctime() and time.asctime() now raises an
OSError if localtime() failed.
2012-01-27 00:08:48 +01:00
Nadeem Vawda
131c7079d3
Issue #13862 : Relax zlib version test to avoid spurious failures.
2012-01-25 23:16:50 +02:00
Antoine Pitrou
581616624d
Port import fixes from 2.7.
2012-01-25 18:06:07 +01:00
Antoine Pitrou
33d15f7c85
Port import fixes from 2.7.
2012-01-25 18:01:45 +01:00
Nadeem Vawda
61baebd0e1
Issue #12804 : Fix test failures on systems without internet access.
2012-01-25 08:02:05 +02:00
Nadeem Vawda
a58c01ba48
Remove redundant resource check in test_socket.
2012-01-25 06:48:47 +02:00
Antoine Pitrou
157c1263a2
Port remaining test fixes, and fix test_importlib too.
2012-01-25 03:01:34 +01:00
Antoine Pitrou
dd21f68963
Port remaining test fixes, and fix test_importlib too.
2012-01-25 03:00:57 +01:00
Antoine Pitrou
05f29b7a3a
Make test work under 32-bit systems, and when invoked through Lib/test/regrtest.py
...
(rather than `-m test.regrtest`)
2012-01-25 01:35:26 +01:00
Antoine Pitrou
abaf89b2be
Issue #11235 : Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
2012-01-24 17:45:50 +01:00
Antoine Pitrou
2be60afb7e
Issue #11235 : Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
2012-01-24 17:44:06 +01:00
Antoine Pitrou
91ecea24f5
Issue #13772 : In os.symlink() under Windows, do not try to guess the link
...
target's type (file or directory). The detection was buggy and made the
call non-atomic (therefore prone to race conditions).
2012-01-24 09:05:18 +01:00
Antoine Pitrou
5311c1d7ab
Issue #13772 : In os.symlink() under Windows, do not try to guess the link
...
target's type (file or directory). The detection was buggy and made the
call non-atomic (therefore prone to race conditions).
2012-01-24 08:59:28 +01:00
Victor Stinner
4ccc727793
Issue #10278 : wallclock() cannot go backward, but two consecutive calls
...
may return the same time.
2012-01-23 23:48:41 +01:00
Gregory P. Smith
0648458b84
Fix a unittest error seen on NetBSD 5.
2012-01-21 22:06:09 -08:00
Gregory P. Smith
886455cc4e
Fix a unittest error seen on NetBSD 5.
2012-01-21 22:05:10 -08:00
Gregory P. Smith
d635af5a61
Fixes issue #8052 : The posix subprocess module's close_fds behavior was
...
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().
It now closes only the open fds when it is possible to safely determine what
those are.
2012-01-21 14:39:29 -08:00
Gregory P. Smith
8facece99a
Fixes issue #8052 : The posix subprocess module's close_fds behavior was
...
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().
It now closes only the open fds when it is possible to safely determine what
those are.
2012-01-21 14:01:08 -08:00
Victor Stinner
a4ac600d6f
Issue #13706 : Support non-ASCII fill characters
2012-01-21 15:50:49 +01:00
Senthil Kumaran
3242577a08
merge from 3.2
2012-01-21 11:55:40 +08:00
Senthil Kumaran
3800ea9f65
Fix Issue6631 - Disallow relative file paths in urllib urlopen
2012-01-21 11:52:48 +08:00
Benjamin Peterson
77fc1f3c06
add another test case
2012-01-20 11:01:06 -05:00
Łukasz Langa
002890861f
#13760 : picklability tests for configparser exceptions
2012-01-20 15:53:10 +01:00
Łukasz Langa
e7851956de
#13760 : picklability tests for configparser exceptions
2012-01-20 14:57:55 +01:00
Victor Stinner
2dd254d17a
Issue #10278 : Be more explicit in tests than wallclock() is monotonic (cannot
...
go backward)
2012-01-20 02:24:18 +01:00
Benjamin Peterson
cff9237d57
check after comments, too ( #13832 )
2012-01-19 17:46:13 -05:00
Meador Inge
fa21bf015d
Issue #12705 : Raise SyntaxError when compiling multiple statements as single interactive statement
2012-01-19 01:08:41 -06:00
Meador Inge
00c7f85298
Issue #2134 : Add support for tokenize.TokenInfo.exact_type.
2012-01-19 00:44:45 -06:00
Antoine Pitrou
391166fbfc
Be more lenient in test_wallclock (issue #10278 ).
2012-01-18 22:35:21 +01:00
Antoine Pitrou
af5facc4ca
Add part of test_inspect test from 2.7
2012-01-18 17:40:48 +01:00
Antoine Pitrou
0c60381749
Add part of test_inspect test from 2.7
2012-01-18 17:40:18 +01:00
Nadeem Vawda
50a4d5debb
Merge: #13781 : Fix GzipFile to work with os.fdopen()'d file objects.
2012-01-18 09:32:25 +02:00
Nadeem Vawda
892b0b928d
Issue #13781 : Fix GzipFile to work with os.fdopen()'d file objects.
2012-01-18 09:25:58 +02:00
Victor Stinner
b94b266cfc
Close #10278 : Add time.wallclock() function, monotonic clock.
2012-01-18 01:50:21 +01:00
Nadeem Vawda
72750a85f9
Issue #13809 : Make bz2 module work with threads disabled.
...
Original patch by Amaury Forgeot d'Arc.
2012-01-18 01:57:14 +02:00
Antoine Pitrou
7422b22e5e
Test running of code in a sub-interpreter
...
(prelude to issue #6531 ).
2012-01-18 00:22:06 +01:00
Antoine Pitrou
2f828f2c88
Test running of code in a sub-interpreter
...
(prelude to issue #6531 ).
2012-01-18 00:21:11 +01:00
Antoine Pitrou
0174db50a5
Issue #13589 : Fix some serialization primitives in the aifc module.
...
Patch by Oleg Plakhotnyuk.
2012-01-17 17:14:30 +01:00
Antoine Pitrou
03757ec4a5
Issue #13589 : Fix some serialization primitives in the aifc module.
...
Patch by Oleg Plakhotnyuk.
2012-01-17 17:13:04 +01:00
Benjamin Peterson
d5890c8db5
add str.casefold() ( closes #13752 )
2012-01-14 13:23:30 -05:00
Meador Inge
94d5a7174a
Issue #13786 : Remove unimplemented 'trace' long option from regrtest.py.
2012-01-14 11:54:43 -06:00
Meador Inge
b0ae0ac668
Issue #13786 : Remove unimplemented 'trace' long option from regrtest.py.
2012-01-14 11:50:33 -06:00
Meador Inge
124598caf7
Issue #13725 : regrtest does not recognize -d flag.
...
Patch by Erno Tukia.
2012-01-14 09:17:10 -06:00
Meador Inge
3f55e59282
Issue #13725 : regrtest does not recognize -d flag.
...
Patch by Erno Tukia.
2012-01-14 09:12:55 -06:00
Benjamin Peterson
527c622926
make YieldFrom its own distinct from Yield ( closes #13780 )
2012-01-14 08:58:23 -05:00
Senthil Kumaran
91f252b179
merge from 3.2 - Fix issue13726: -S accepts an argument just as --start.
2012-01-14 21:08:15 +08:00
Senthil Kumaran
3ffd7ca041
Fix issue13726: -S accepts an argument just as --start.
2012-01-14 21:07:31 +08:00
Senthil Kumaran
4479577388
merge from 3.2 - Fix Issue #13642 : Unquote before b64encoding user:password during Basic Authentication.
2012-01-14 19:12:28 +08:00
Senthil Kumaran
c5c5a14577
Fix Issue #13642 : Unquote before b64encoding user:password during Basic Authentication.
2012-01-14 19:09:04 +08:00
Senthil Kumaran
6c3dd7ea42
merge from 3.2
2012-01-14 18:39:23 +08:00
Senthil Kumaran
0e0772d859
merge from 3.2
2012-01-14 18:39:06 +08:00
Senthil Kumaran
9bbcb254db
Adding the -o option for Issue13726
2012-01-14 18:38:28 +08:00
Senthil Kumaran
bcfe56d77c
Issue13726 - Fix the ambiguous -S flag in regrtest. It is -o/--slow for printing the 10 slowest test.
2012-01-14 18:26:27 +08:00
Amaury Forgeot d'Arc
e557da804a
Fix a crash when the return value of a subgenerator is a temporary
...
object (with a refcount of 1)
2012-01-13 21:06:12 +01:00
Antoine Pitrou
bbf53614b7
test_strlit was never run
2012-01-12 22:36:48 +01:00
Antoine Pitrou
f7bfff0e42
Remove unused certificate from the test directory.
2012-01-10 23:45:54 +01:00
Terry Jan Reedy
ee91e0990a
#11906 Make test_argparse work interactively by removing extra space
...
in comparison string that argparse does not add when program name is blank.
2012-01-09 18:20:09 -05:00
Ross Lagerwall
66e2fb68ac
Issue #12364 : Fix a hang in concurrent.futures.ProcessPoolExecutor.
2012-01-08 08:29:40 +02:00
Charles-François Natali
ded0348c08
Issue #13502 : threading: Fix a race condition in Event.wait() that made it
...
return False when the event was set and cleared right after.
2012-01-07 18:24:56 +01:00
Vinay Sajip
cdf6cd9ff3
Closes #13699 . Skipped two tests if Python is optimised.
2012-01-05 11:45:31 +00:00
Senthil Kumaran
6497aa3e00
Issue13696 - Fix 302 Redirection for Relative urls.
2012-01-04 13:46:59 +08:00
Benjamin Peterson
a8d7037e32
merge 3.1
2012-01-03 16:24:39 -06:00
Benjamin Peterson
b462da8c0a
fix this to not depend on dictionary order
2012-01-03 16:23:11 -06:00
Antoine Pitrou
8f85f907e3
Issue #13636 : Weak ciphers are now disabled by default in the ssl module
...
(except when SSLv2 is explicitly asked for).
2012-01-03 22:46:48 +01:00
Charles-François Natali
366999a011
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
...
Vilmos Nebehaj.
2012-01-02 15:47:29 +01:00
Sandro Tosi
70efbefcc5
Issue #13594 : various fixes to aifc module; patch by Oleg Plakhotnyuk
2012-01-01 22:53:08 +01:00
Sandro Tosi
bdd5354700
Issue #13680 : add lowecase compression type to write header; patch by Oleg Plakhotnyuk
2012-01-01 18:04:37 +01:00
Benjamin Peterson
0e61350d3a
propgate error in other conditions
2011-12-27 15:16:34 -06:00
Michael Foord
3ba95f8bd9
Metaclasses with metaclasses with a __dict__ descriptor can no longer trigger code execution with inspect.getattr_static.
...
Closes issue 11829.
2011-12-22 01:13:37 +00:00
Antoine Pitrou
65a3f4b8c5
Use context managers in test_ssl to simplify test writing.
2011-12-21 16:52:40 +01:00
Antoine Pitrou
28f8bee5c8
Issue #13645 : fix test_import failure when run immediately after test_coding.
2011-12-21 15:50:42 +01:00
Antoine Pitrou
86a8a9ae98
Issue #1785 : Fix inspect and pydoc with misbehaving descriptors.
...
Also fixes issue #13581 : `help(type)` wouldn't display anything.
2011-12-21 09:57:40 +01:00
Charles-François Natali
bf38315446
Followup to issue #11867 : Use socketpair(), since FreeBSD < 8 doesn't really
...
support multiprocessing.Event.
2011-12-20 11:48:22 +01:00
Antoine Pitrou
7ded21e917
Issue #5424 : add tests for inet_ntoa, inet_ntop, inet_aton and inet_pton.
...
Patch by Philipp Hagemeister.
2011-12-19 16:21:21 +01:00
Charles-François Natali
4ce2f36461
Issue #13453 : Try to increase some socket timeouts to make some buildbots stop
...
failing.
2011-12-19 16:12:23 +01:00
Victor Stinner
d208416a40
Issue #13628 : python-gdb.py is now able to retrieve more frames in the Python
...
traceback if Python is optimized.
* delay the lookup of the size_t type, it is not available at startup
* The second argument of the PyFrameObjectPtr constructor is optional, as
done in other constructors
* iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns
an empty tuple instead of None if Python is optimized
* Fix py-bt and py-bt-full to handle correctly "optimized" frames
* Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx()
if the pointer is optimized out in PyEval_EvalFrameEx()
2011-12-19 13:42:24 +01:00
Charles-François Natali
78ed83da46
Issue #11867 : Make test_mailbox.test_lock_conflict deterministic (and fix a
...
race condition).
2011-12-19 12:18:55 +01:00
Ezio Melotti
62f3d0300e
#13576 : add tests about the handling of (possibly broken) condcoms.
2011-12-19 07:29:03 +02:00
Michael Foord
a51623b160
Fix inspect.getattr_static to work on modules (again).
...
Closes issue 11813.
2011-12-18 22:01:40 +00:00
Antoine Pitrou
165b1283ff
Followup to #7502 : add __hash__ method and tests.
2011-12-18 20:20:17 +01:00
Antoine Pitrou
2bc801c4ea
Issue #7502 : Fix equality comparison for DocTestCase instances.
...
Patch by Cédric Krier.
2011-12-18 19:27:45 +01:00
Benjamin Peterson
0296a56520
NULL and no exception set from tp_iternext means StopIteration
2012-01-13 14:54:31 -05:00
Benjamin Peterson
9a80fa81b0
add test, which was missing from d64ac9ab4cd0
2012-01-13 14:39:38 -05:00
Georg Brandl
bc3b682923
Closes #13761 : add a "flush" keyword argument to print().
2012-01-13 19:41:25 +01:00
Antoine Pitrou
5136ac0ca2
Issue #13645 : pyc files now contain the size of the corresponding source
...
code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.
2012-01-13 18:52:16 +01:00
Nick Coghlan
1f7ce62bd6
Implement PEP 380 - 'yield from' ( closes #11682 )
2012-01-13 21:43:40 +10:00
Antoine Pitrou
3a5d4cb940
Issue #13748 : Raw bytes literals can now be written with the `rb` prefix as well as `br`.
2012-01-12 22:46:19 +01:00
Antoine Pitrou
b63a450cc4
test_strlit was never run
2012-01-12 22:38:13 +01:00