Commit graph

17111 commits

Author SHA1 Message Date
Antoine Pitrou
796564c27b Issue #18112: PEP 442 implementation (safe object finalization). 2013-07-30 19:59:21 +02:00
Christian Heimes
c5d95b17ac Add simple test for repr(lock) 2013-07-30 15:54:39 +02:00
Christian Heimes
8ad91cc354 Add simple test for resource.getpagesize() 2013-07-30 15:44:24 +02:00
Christian Heimes
4ebc9295d1 Add simple test for resource.getpagesize() 2013-07-30 15:44:13 +02:00
Christian Heimes
d49a371e91 Issue #18599: Fix name attribute of _sha1.sha1() object. It now returns
'SHA1' instead of 'SHA'.
Add more tests for hashlib and hash object attributes
2013-07-30 15:35:54 +02:00
Christian Heimes
65aa573082 Add more tests for hashlib and hash object attributes 2013-07-30 15:33:30 +02:00
Nick Coghlan
00dc61cd73 Merge #15415 from 3.3 (again) 2013-07-29 17:52:21 +10:00
Nick Coghlan
c06c0aed58 Third attempt to fix #15415 on Windows
With help from jkloth on IRC, so it will hopefully work
this time :)
2013-07-29 17:51:16 +10:00
Nick Coghlan
4bcb1ec539 Merge #15415 Windows buildbot change from 3.3 2013-07-29 15:19:29 +10:00
Nick Coghlan
2f253e8e62 Attempt to fix #15415 on Windows 2013-07-29 15:18:09 +10:00
Nick Coghlan
cf67b2a891 Merge #15415 from 3.3 2013-07-28 22:25:25 +10:00
Nick Coghlan
5517596c04 Close #15415: Factor out temp dir helpers to test.support
Patch by Chris Jerdonek
2013-07-28 22:11:50 +10:00
Nick Coghlan
69e3bda310 Issue #15494: test.support is now a package rather than a module
Also including this change in 3.3 to help avoid spurious conflicts
between the two most active branches.

(Initial patch by Indra Talip)
2013-07-28 21:06:50 +10:00
Nick Coghlan
fb15aa1e08 Close #15494: test.support is now a package rather than a module
Initial patch by Indra Talip
2013-07-28 20:56:19 +10:00
Nick Coghlan
e8c45d6d0e Close #13266: Add inspect.unwrap
Initial patch by Daniel Urban and Aaron Iles
2013-07-28 20:00:01 +10:00
Raymond Hettinger
77578204d6 Restore the data block size to 62.
The former block size traded away good fit within cache lines in
order to gain faster division in deque_item().  However, compilers
are getting smarter and can now replace the slow division operation
with a fast integer multiply and right shift.  Accordingly, it makes
sense to go back to a size that lets blocks neatly fill entire
cache-lines.

GCC-4.8 and CLANG 4.0 both compute "x // 62" with something
roughly equivalent to "x * 9520900167075897609 >> 69".
2013-07-28 02:39:49 -07:00
Terry Jan Reedy
1f1d0a57fa Merge with 3.3 2013-07-28 00:00:47 -04:00
Terry Jan Reedy
725d9dd1a7 Issue #18441: Make test.support.requires('gui') skip when it should. 2013-07-28 00:00:20 -04:00
Benjamin Peterson
290371dadc merge 3.3 (#18565) 2013-07-27 14:07:19 -07:00
Benjamin Peterson
d979c72160 add a test for issue #17669 (closes #18565)
Patch from Phil Connell.
2013-07-27 14:06:56 -07:00
Ethan Furman
b41803e3ef Close #18545: now only executes member_type if no _value_ is assigned in __new__. 2013-07-25 13:50:45 -07:00
R David Murray
4d35e75ca0 #17818: aifc.getparams now returns a namedtuple.
Patch by Claudiu Popa.
2013-07-25 16:12:01 -04:00
R David Murray
4d0f808c24 #18503: small cleanups in test_email.
Patch by Vajrasky Kok.
2013-07-25 12:15:28 -04:00
R David Murray
271ade87ac #18503: small cleanups in test_email.
Patch by Vajrasky Kok.
2013-07-25 12:11:55 -04:00
Ezio Melotti
99f969e7c7 #14853: merge with 3.3. 2013-07-25 05:24:47 +02:00
Ezio Melotti
b042daa5a7 #14853: remove test that was making too many assumptions about stdin. Patch by Elena Oat. 2013-07-25 05:21:00 +02:00
Serhiy Storchaka
9068e4d642 Issue #17944: test_zipfile now discoverable and uses subclassing to
generate tests for different compression types.  Fixed a bug with skipping
some tests due to use of exhausted iterators.
2013-07-22 21:02:14 +03:00
Serhiy Storchaka
fa6bc29987 Issue #17944: test_zipfile now discoverable and uses subclassing to
generate tests for different compression types.  Fixed a bug with skipping
some tests due to use of exhausted iterators.
2013-07-22 21:00:11 +03:00
Antoine Pitrou
2894073e1a test_ssl: use a bytestring here 2013-07-20 19:36:15 +02:00
Antoine Pitrou
60a26e0516 Issue #9177: Calling read() or write() now raises ValueError, not AttributeError, on a closed SSL socket.
Patch by Senko Rasic.
2013-07-20 19:35:16 +02:00
Ethan Furman
520ad57916 Change _names to _names_ since the latter is reserved for Enum use.
Before this change only the methods were _single_underscored_; now
the attributes are as well.
2013-07-19 19:47:21 -07:00
Ethan Furman
2aa2732eaf Close #18508 -- fix _value2member_map to always have the member's value 2013-07-19 19:35:56 -07:00
Richard Oudkerk
e410f267f1 Merge. 2013-07-19 22:54:37 +01:00
Richard Oudkerk
14f5ee0a62 Prevent dangling threads/process warning for test_multiprocessing. 2013-07-19 22:53:42 +01:00
Ethan Furman
f24bb35a69 closes issue18042 -- a unique decorator is added to enum.py
The docs also clarify the 'Interesting Example' duplicate-free enum is for
demonstration purposes.
2013-07-18 17:05:39 -07:00
Serhiy Storchaka
e5553142d4 Issue #18266: test_largefile now works with unittest test discovery and
supports running only selected tests.  Patch by Zachary Ware.
2013-07-17 13:44:17 +03:00
Serhiy Storchaka
c406a121f7 Issue #18266: test_largefile now works with unittest test discovery and
supports running only selected tests.  Patch by Zachary Ware.
2013-07-17 13:42:24 +03:00
Serhiy Storchaka
cb478b72a3 Issue #17767: test_locale now works with unittest test discovery.
Original patch by Zachary Ware.
2013-07-17 13:26:48 +03:00
Serhiy Storchaka
880254e222 Issue #17767: test_locale now works with unittest test discovery.
Original patch by Zachary Ware.
2013-07-17 13:23:45 +03:00
R David Murray
743e3d5139 Merge: Closes #18475: add unittest.main() to test_email/test_inversions. 2013-07-16 11:46:00 -04:00
R David Murray
b5c9dfdab3 Closes #18475: add unittest.main() to test_email/test_inversions.
Patch by Vajrasky Kok.
2013-07-16 11:45:31 -04:00
Richard Oudkerk
a84a7cb06b Issue #17778: Fix test discovery for test_multiprocessing. (Patch by
Zachary Ware.)
2013-07-16 15:57:16 +01:00
Richard Oudkerk
d15642e428 Issue #17778: Fix test discovery for test_multiprocessing. (Patch by
Zachary Ware.)
2013-07-16 15:33:41 +01:00
Ronald Oussoren
e6f2175afb Also remove a (broken) leaker test for the code removed in issue #18393. 2013-07-16 08:32:05 +02:00
Victor Stinner
775b2dd778 test_io: check_interrupted_write() now cancels the alarm if ZeroDivisionError
exception was not raised.

Before the process was killed by SIGALRM in another random test (1 second later)
2013-07-15 19:53:13 +02:00
R David Murray
48830035e5 Closes #18464: fix typo in test name. 2013-07-15 12:09:47 -04:00
R David Murray
7f93b36e73 Merge: Closes #18464: fix typo in test name. 2013-07-15 12:10:29 -04:00
Nick Coghlan
24c05bc154 Close issue 17482: don't overwrite __wrapped__ 2013-07-15 21:13:08 +10:00
Raymond Hettinger
468bcaffd6 merge 2013-07-13 22:48:49 -07:00
Raymond Hettinger
889b92d3aa Issue #18432: Fix unintended API change in the sched module 2013-07-13 22:42:09 -07:00