Commit graph

38860 commits

Author SHA1 Message Date
Martin Panter
a7f9933efa Issue #23788: Merge redundant test_bad_address() into test_urllibnet
In Python 2, these were duplicated; one for urllib.urlopen() and one for
urllib2.urlopen(). The test_urllibnet version has a better precondition to
avoid false failures with bad DNS, and the test_urllib2_localnet version had
a more up-to-date comment and domain name.
2015-12-16 04:36:20 +00:00
Victor Stinner
129a414490 Issue #25868: Try to make test_eintr.test_sigwaitinfo() more reliable
especially on slow buildbots

Use a pipe to synchronize the parent and the child processes.
2015-12-15 11:29:59 +01:00
Gregory P. Smith
fcbdf9906b * Re-fix issue #19284: Don't generate the no-op -R command line
parameter to "enable" the always on sys.flags.hash_randomization
  in _args_from_interpreter_flags() used by multiprocessing and
  some unittests.  This simplifies the code.
* assert_python_ok docstring typo fix.
* Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed.
2015-12-13 20:15:26 -08:00
Gregory P. Smith
6edadfc9ca * Re-fix issue #19284: Don't generate the no-op -R command line
parameter to "enable" the always on sys.flags.hash_randomization
  in _args_from_interpreter_flags() used by multiprocessing and
  some unittests.  This simplifies the code.
* assert_python_ok docstring typo fix.
* Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed.
2015-12-13 20:09:42 -08:00
Gregory P. Smith
0212c4dc6b Re-fix issue #19284: Don't generate the no-op -R command line
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests.  This simplifies the code.
2015-12-13 20:05:55 -08:00
Gregory P. Smith
220ba72c20 Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed
due to test_hash_randomization expecting a different seed per process.
2015-12-13 20:01:44 -08:00
Gregory P. Smith
4cb6d37d1d assert_python_ok docstring typo fix. 2015-12-13 20:00:24 -08:00
Guido van Rossum
707244736a Sync asyncio with upstream git repo (conditional import in test_pep492.py). (Merge 3.5->3.6) 2015-12-12 17:02:15 -08:00
Guido van Rossum
1a316e82f6 Sync asyncio with upstream git repo (conditional import in test_pep492.py). 2015-12-12 17:01:47 -08:00
Martin Panter
33d8a1b426 Issue #19771: Merge runpy error adjustment from 3.5 2015-12-12 07:16:33 +00:00
Martin Panter
58ea9104fb Issue #25809: Merge French locale test from 3.5 2015-12-12 07:13:10 +00:00
Martin Panter
dda584340e Issue #19771: Omit irrelevant message if package could not be initialized 2015-12-12 06:58:55 +00:00
Martin Panter
ce70132bc4 Issue #25809: Skip testing platform-dependent French thousands separator 2015-12-12 06:53:34 +00:00
Martin Panter
6a109365ec Issue #25809: Skip testing platform-dependent French thousands separator 2015-12-12 06:53:34 +00:00
Berker Peksag
e0ad1e191a Issue #25755: Move PropertyWritableDoc into the test case
This fixes a test failure in refleak mode because
test_property_decorator_doc_writable no longer modifies
the class in module level.

Initial patch by Nan Wu and Torsten Landschoff (from issue 25757)
2015-12-11 23:48:37 +02:00
Berker Peksag
a7d81270cc Issue #25755: Move PropertyWritableDoc into the test case
This fixes a test failure in refleak mode because
test_property_decorator_doc_writable no longer modifies
the class in module level.

Initial patch by Nan Wu and Torsten Landschoff (from issue 25757)
2015-12-11 23:48:13 +02:00
Yury Selivanov
8bb6fa85e1 Merge 3.5 2015-12-11 11:34:30 -05:00
Yury Selivanov
d3ded40a53 Merge 3.4 2015-12-11 11:34:11 -05:00
Yury Selivanov
0ac3a0cd79 asyncio: Make Tasks check if Futures are attached to the same event loop
See https://github.com/python/asyncio/pull/303 for details
2015-12-11 11:33:59 -05:00
Yury Selivanov
0f8475a008 Merge 3.5 2015-12-11 11:33:21 -05:00
Yury Selivanov
7888e67027 Merge 3.4 2015-12-11 11:33:08 -05:00
Yury Selivanov
dddc781998 asyncio: Sync with github 2015-12-11 11:32:59 -05:00
Martin Panter
aa5dcd893c Issue #25764: Merge fix for root user from 3.5 2015-12-11 05:42:26 +00:00
Martin Panter
70fe09bc67 Issue #22341: Merge CRC doc from 3.5 2015-12-11 05:41:48 +00:00
Martin Panter
5cf791b035 Issue #25764: Skip fork failure test when run as root 2015-12-11 05:40:14 +00:00
Martin Panter
b82032f935 Issue #22341: Drop Python 2 workaround and document CRC initial value
Also align the parameter naming in binascii to be consistent with zlib.
2015-12-11 05:19:29 +00:00
Martin Panter
8c0b5b998a Issue #14285: Merge runpy fix from 3.5 2015-12-11 03:35:31 +00:00
Martin Panter
7dda421bff Issue #14285: Do not catch exceptions initializing any ancestor package
The previous fix only handled the case of the parent package of __main__
failing to initialize.

Also make the "Error while finding spec" formatting slightly more appealing,
and document and test that the module name must be absolute.
2015-12-10 06:47:06 +00:00
Martin Panter
747029afdc Issue #25820: Merge test_gdb fixes from 3.5 2015-12-09 02:05:03 +00:00
Martin Panter
40e102c193 Issue #25820: Remove unused assignment and redundant GDB CLI arguments
These were added in revision b71cda2f48c6.
2015-12-08 21:54:42 +00:00
doko@ubuntu.com
5e58600c42 Remove x permissions from Lib/test/test_script_helper.py 2015-12-07 12:19:49 +01:00
Larry Hastings
d785da8fbb Merge. 2015-12-06 22:00:57 -08:00
Serhiy Storchaka
9ec5e25f26 Issue #25638: Optimized ElementTree.iterparse(); it is now 2x faster.
ElementTree.XMLParser._setevents now accepts any objects with the append
method, not just a list.
2015-12-07 02:31:11 +02:00
Serhiy Storchaka
59fb6342a4 Issue #25761: Improved detecting errors in broken pickle data. 2015-12-06 22:01:35 +02:00
Larry Hastings
8986c442cd Rebuilt pydoc topics for 3.4.4rc1. 2015-12-06 05:51:56 -08:00
Larry Hastings
3e7a56a496 Updated pydoc topics for 3.5.1 final. 2015-12-05 17:03:20 -08:00
Martin Panter
c4b8979a2f Issue #25764: Merge OS X test skipping from 3.4 into 3.5 2015-12-05 12:41:29 +00:00
Martin Panter
0d559cf72a Issue #25764: Remove test debugging 2015-12-05 10:18:25 +00:00
Martin Panter
1a173de212 Issue #25764: Merge OS X test skipping from 3.5 2015-12-05 12:41:41 +00:00
Martin Panter
f7fdbdab5b Issue #25764: Skip the test on OS X
The OS X buildbots were failing at the second setrlimit() call with EPERM, as
if they were trying to raise the hard limit. The call should be keeping the
hard limit the same and raising the soft limit back to its original value, so
I don't understand the failure.
2015-12-05 09:51:52 +00:00
Zachary Ware
6dece97768 Closes #25800: Merge with 3.5 2015-12-05 00:19:08 -06:00
Zachary Ware
2356069d94 Issue #25800: Merge with 3.4 2015-12-05 00:18:29 -06:00
Zachary Ware
6d8a260845 Issue #25800: Fix running test_capi directly 2015-12-05 00:16:55 -06:00
Martin Panter
aa0780801c Issue #25764: OS X now failing on the second setrlimit() call 2015-12-05 05:42:18 +00:00
Zachary Ware
2d2af91da0 Closes #25795: Merge with 3.5 2015-12-04 23:33:59 -06:00
Zachary Ware
ac28b796d8 Issue #25795: Fix several tests to run independently.
These were broken in 3aec776fc796 when they were converted
away from using support.run_unittest().  Oops :)

Initial patch by Felippe da Motta Raposo.
2015-12-04 23:32:23 -06:00
Martin Panter
da0f2a1f52 Issue #25764: Attempt to debug and skip OS X setrlimit() failure 2015-12-05 04:16:45 +00:00
R David Murray
154228fb61 Merge: #24903: Remove misleading error message to fix regression. 2015-12-04 23:05:20 -05:00
R David Murray
939614c48c Merge: #24903: Remove misleading error message to fix regression. 2015-12-04 23:04:37 -05:00
R David Murray
ced699b4c7 #24903: Remove misleading error message to fix regression.
Before the argparse conversion, compileall would (sometimes) accept multiple
paths when -d was specified.  Afterward, it does not.  The corresponding check
in the original code claimed to prevent multiple *directories* from being
specified...but it didn't really work even to do that.  So this patch fixes
the regression by invoking the consenting adults rule: if you specify a
combination of arguments to compileall that produces files with inconsistent
destdirs (which you could do before), it is on you.

Patch by Jake Garver.
2015-12-04 22:54:38 -05:00