Commit graph

9926 commits

Author SHA1 Message Date
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