Commit Graph

32345 Commits

Author SHA1 Message Date
Gregory P. Smith 914061ab15 * Fix the assertions in hashlib to use unittest assertion methods instead of
evil assert statements.
* Add an additional assert to the new test_name_attribute test that actually
  confirms that a hash created using each h.name results in a new hash sharing
  the same name.
2013-08-05 13:14:37 -07:00
Mark Dickinson f3e4b62d02 Issue #18659: Backed out changeset cfd875bcbe41 after buildbot failures. 2013-08-05 10:59:36 +01:00
Mark Dickinson a9e626f704 Issue #18659: fix test_format test that wasn't being executed. Thanks Vajrasky Kok for the patch. 2013-08-05 10:30:14 +01:00
Jason R. Coombs b2aa6f4055 Issue 18532: Added tests and documentation to formally specify the .name attribute on hashlib objects. 2013-08-03 11:39:39 +02:00
Terry Jan Reedy ec53111f76 Merge with 3.3 2013-08-04 15:39:32 -04:00
Terry Jan Reedy 95f34ab959 Issue #18151: Replace remaining Idle 'open...close' pairs with 'with open'. 2013-08-04 15:39:03 -04:00
Alexander Belopolsky 790d269d39 Fixes #8860: Round half-microseconds to even in the timedelta constructor.
(Original patch by Mark Dickinson.)
2013-08-04 14:51:35 -04:00
Ethan Furman 5e5a8230c2 Close #18635: Move class level private attribute from instance to class. 2013-08-04 08:42:23 -07:00
Larry Hastings b90f417d69 Merging the 3.4.0a1 head. 2013-08-03 23:30:13 -07:00
Eli Bendersky b9b6ce6f2c Merge fix for Issue #17011 from 3.3 2013-08-03 17:48:41 -07:00
Eli Bendersky 2acc525a97 Issue #17011: Fix caching of xpath path when namespaces are present.
Thanks to Stefan Behnel for the report and proposed solution & test.
2013-08-03 17:47:47 -07:00
Serhiy Storchaka 739e75000f Issue #16741: Remove testing of implementation artifact. 2013-08-04 01:05:02 +03:00
Serhiy Storchaka 3ceaff0777 Issue #16741: Remove testing of implementation artifact. 2013-08-04 01:04:15 +03:00
Serhiy Storchaka 3efad82b05 Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy. 2013-08-03 23:47:48 +03:00
Serhiy Storchaka 5e376a7809 Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy. 2013-08-03 23:46:19 +03:00
Larry Hastings 436151e2ca Merge from v3.4.0a1 head. 2013-08-03 13:01:39 -07:00
Larry Hastings 1f08c772f5 Bumped version to 3.4.0a1. 2013-08-03 12:58:12 -07:00
Larry Hastings 4e0f6639d8 Updated pydoc topics for Python 3.4.0a1 release. 2013-08-03 12:47:53 -07:00
Serhiy Storchaka 579ddc2fd4 Issue #16741: Fix an error reporting in int(). 2013-08-03 21:14:05 +03:00
Serhiy Storchaka f6d0aeeadc Issue #16741: Fix an error reporting in int(). 2013-08-03 20:55:06 +03:00
Serhiy Storchaka e633bed44a Merge heads 2013-08-03 19:28:28 +03:00
Serhiy Storchaka b94f61b6fb Issue #17998: Fix an internal error in regular expression engine. 2013-08-03 19:22:28 +03:00
Serhiy Storchaka 1f35ae0a3c Issue #17998: Fix an internal error in regular expression engine. 2013-08-03 19:18:38 +03:00
Mark Dickinson d41102dac8 Remove debugging print. 2013-08-03 17:14:50 +01:00
doko@ubuntu.com fb0ffa12fc - Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger). 2013-08-03 16:18:55 +02:00
doko@ubuntu.com 1dfb9180a7 - Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger). 2013-08-03 16:12:33 +02:00
Nick Coghlan 1337130335 Merge #18396 from 3.3 2013-08-03 23:03:27 +10:00
Nick Coghlan 60b3ac7482 Close #18396: fix spurious test_signal failure on Windows
signal.getsignal returns None for some signals if faulthandler
is enabled (Patch by Jeremy Kloth)
2013-08-03 22:56:30 +10:00
Ned Deily 582583bc41 Issue #17046: merge from 3.3 2013-08-02 18:05:31 -07:00
Ned Deily e92dfbfec8 Issue #17046: Fix test_subprocess test_executable_without_cwd broken test case. 2013-08-02 18:02:21 -07:00
Charles-François Natali 1d7ec8f26c Issue #18325: Fix a test_kqueue failure on OpenBSD: kevent's data and event
members are integers.
2013-08-02 10:22:07 +02:00
Charles-François Natali 6ddd2653ab Issue #18325: Fix a test_kqueue failure on OpenBSD: kevent's data and event
members are integers.
2013-08-02 10:21:20 +02:00
Antoine Pitrou 284e5ce67e Fix the RLIMIT_CORE resource lowering logic in test_subprocess.
We must only lower the soft limit, since lowering the hard limit makes it impossible to raise it back at the end.
(this could prevent core dumps from being generated when the test suite crashes)
2013-08-02 00:08:51 +02:00
Antoine Pitrou 2d350fd8af Issue #18619: Fix atexit leaking callbacks registered from sub-interpreters, and make it GC-aware. 2013-08-01 20:56:12 +02:00
Antoine Pitrou 7a2572cb49 test_capi: make a specific test case for the subinterpreter test
(it was wrongly classified in the pending calls test case)
2013-08-01 20:43:26 +02:00
Antoine Pitrou f93c7b8061 Remove Lib/site.py hack to unregister patched builtins.
It creates a refleak in subinterpreters, as atexit callbacks aren't triggered at their end.
2013-08-01 19:46:04 +02:00
Antoine Pitrou 4ed328c4d7 Add a test for module weakrefability 2013-08-01 19:20:31 +02:00
Tim Golden b2fcebb018 issue9035: Prevent Windows-specific tests from running on non-Windows platforms 2013-08-01 13:58:58 +01:00
Tim Golden 6b528067c5 Issue #9035: os.path.ismount now recognises volumes mounted below
a drive root on Windows. Original patch by Atsuo Ishimoto.
2013-08-01 12:44:00 +01:00
R David Murray 536ffe161c #17616: Improve context manager tests, fix bugs in close method and mode docs.
'mode' docs fix: the file must always be opened in binary in Python3.

Bug in Wave_write.close: when the close method calls the check that the header
exists and it raises an error, the _file attribute never gets set to None, so
the next close tries to close the file again and we get an ignored traceback
in the __del__ method.  The fix is to set _file to None in a finally clause.
This represents a behavior change...in theory a program could be checking for
the error on close and then doing a recovery action on the still open file and
closing it again.  But this change will only go into 3.4, so I think that
behavior change is acceptable given that it would be pretty weird and unlikely
logic to begin with.
2013-07-31 20:48:26 -04:00
Antoine Pitrou a4617cdac9 Fix whitespace 2013-07-31 23:15:37 +02:00
Antoine Pitrou dcedaf6e53 Issue #18214: Improve finalization of Python modules to avoid setting their globals to None, in most cases. 2013-07-31 23:14:08 +02:00
R David Murray c91d5eea10 #17616: wave.open now supports the 'with' statement.
Feature and tests by ClClaudiu.Popa, I added the doc changes.
2013-07-31 13:46:08 -04:00
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
Eli Bendersky 580373c469 Issue #18593: fix typo in comment 2013-07-30 06:13:01 -07:00