Commit Graph

13470 Commits

Author SHA1 Message Date
Martin Panter 74c76c8f06 Issue #24657: Prevent CGIRequestHandler from collapsing the URL query
Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc
string.
2015-10-03 05:55:46 +00:00
Martin Panter cff22eb2bf Issue #25232: Fix CGIRequestHandler's splitting of URL query
Patch from Xiang Zhang.
2015-10-03 05:38:07 +00:00
Brett Cannon 65918e01be Fix indentation 2015-10-02 16:22:32 -07:00
Brett Cannon 9537478463 Issue #25188: Add -P/--pgo to test.regrtest for PGO building.
Initial patch by Alecsandru Patrascu of Intel.
2015-10-02 16:21:34 -07:00
Serhiy Storchaka f6eced52cc Removed the "b" string prefix to make test_xpickle compatible with Python 2.5. 2015-10-02 20:23:46 +03:00
Serhiy Storchaka e12f632186 Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
2015-10-02 13:14:53 +03:00
Serhiy Storchaka f522bbc9c2 Issue #22958: Constructor and update method of weakref.WeakValueDictionary
now accept the self keyword argument.
2015-09-29 23:51:27 +03:00
Serhiy Storchaka cab4566c5a Issue #22609: Constructor and the update method of collections.UserDict now
accept the self keyword argument.
2015-09-29 23:33:03 +03:00
Serhiy Storchaka 22afc506fb Backported additional unpickling tests from 3.x. 2015-09-29 15:51:40 +03:00
Serhiy Storchaka 4d2cf5587c Moved unpickling tests with prepickled data to separate class. 2015-09-29 15:36:28 +03:00
Berker Peksag b7c3515308 Issue #25249: Remove unneeded mkstemp helper in test_subprocess
The helper was added in 76641824cf05 11 years ago and it can be
removed now since all supported Python versions have tempfile.mkstemp().

Patch by Nir Soffer.
2015-09-28 15:37:57 +03:00
Martin Panter 2bc50d78e3 Issue #25211: Fix error message code in test_long; patch from s-wakaba 2015-09-24 00:19:42 +00:00
Serhiy Storchaka 63550ee1a2 Issue #25108: Fixed test_traceback in the case when this test is run twice.
In this case __file__ is the name of precompiled file (*.py[co]).
2015-09-20 08:38:40 +03:00
Serhiy Storchaka 90f5f5151c Issue #25101: Try to create a file to test write access in test_zipfile. 2015-09-19 10:55:20 +03:00
Serhiy Storchaka 62f0ffa861 Issue #25108: Backported tests for traceback functions print_stack(),
format_stack(), and extract_stack() called without arguments.
2015-09-18 10:09:29 +03:00
Victor Stinner df11d7c2b4 test_gdb: fix regex to parse the GDB version
Fix the regex to support the version 7.10: minor version with two digits
2015-09-15 00:19:47 +02:00
Serhiy Storchaka 9b2e37f688 Marked keystrokes with the :kbd: role.
Fixed the case of the "Ctrl-" prefixes.
2015-09-12 17:47:12 +03:00
Martin Panter b2528c92f1 Issue #16473: Fix byte transform codec documentation; test quotetabs=True
This changes the equivalent functions listed for the Base-64, hex and Quoted-
Printable codecs to reflect the functions actually used. Also mention and
test the "quotetabs" setting for Quoted-Printable encoding.
2015-09-12 00:34:28 +00:00
Martin Panter 90bc71f5b1 Remove and enable misplaced codecs tests ported from Python 3
Most of these tests are about blacklisted non-text codecs, which are not
relevant in Python 2. The only one remaining is TransformCodecTest.test_uu_
invalid().
2015-09-12 02:20:06 +00:00
Serhiy Storchaka f29ab72162 Don't encode unicode dirname in test_support.temp_cwd() if unicode file names
are supported by the filesystem.  On Windows the encoding can convert some
characters to '?' that is not legal in file name.
2015-09-09 12:18:36 +03:00
Serhiy Storchaka 672237e887 Fixed tests for shutil.make_archive() with relative base_name in the case when
the path of the directory for temporary files contains symlinks.
2015-09-08 09:59:02 +03:00
Serhiy Storchaka fe45f65187 Issue #24982: shutil.make_archive() with the "zip" format now adds entries
for directories (including empty directories) in ZIP file.
Added test for comparing shutil.make_archive() with the "zip" command.
2015-09-08 05:47:01 +03:00
Serhiy Storchaka f3bdc1082f Backported new tests for attribute setting of expat parser. 2015-09-07 22:42:12 +03:00
Serhiy Storchaka ad7b0cda8a Issue #25018: Fixed testing shutil.make_archive() with relative base_name on
Windows.  The test now makes sense on non-Windows.  Added similar test for
zip format.
2015-09-07 19:58:23 +03:00
Serhiy Storchaka 0ecf462b8e Explicitly test archive name in shutil.make_archive() tests to expose failure
details in issue25018.
2015-09-07 13:55:25 +03:00
Martin Panter b75a0e9f32 Issue #17849: Raise sensible exception for invalid HTTP tunnel response
Initial patch from Cory Benfield.
2015-09-07 01:18:47 +00:00
Serhiy Storchaka 04861dc82f Fix, refactor and extend tests for shutil.make_archive(). 2015-09-06 18:31:23 +03:00
Serhiy Storchaka 7c7b4b5d86 Backport support.change_cwd() and use it in tests. 2015-09-06 14:16:18 +03:00
Terry Jan Reedy 23ae488f23 Issue #16180: Exit pdb if file has syntax error, instead of trapping user
in an infinite loop.  Patch by Xavier de Gaye.
2015-09-05 19:13:17 -04:00
Senthil Kumaran c97e18ec64 merge heads. 2015-09-03 02:50:51 -07:00
Senthil Kumaran f30e078752 Remove unused imports in test_wsgiref.py 2015-09-03 02:39:57 -07:00
Victor Stinner ccd62705b1 Issue #23375: Fix test_py3kwarn for modules implemented in C
Don't check if importing a module emits a DeprecationWarning if the module is
implemented in C and the module is already loaded.
2015-09-03 10:46:17 +02:00
Victor Stinner cc1db4bf85 python-gdb.py: enhance py-bt command
* Add py-bt-full command
* py-bt now gives an output similar to a regular Python traceback
* py-bt indicates:

  - if the garbage collector is running
  - if the thread is waiting for the GIL
  - detect PyCFunction_Call to get the name of the builtin function
2015-09-03 10:17:28 +02:00
Victor Stinner 3c5ce404a0 test_gdb: enhance regex used to parse the GDB version 2015-09-03 09:51:59 +02:00
Zachary Ware ce698f3aa2 Issue #24751: Fix running regrtest with '-w' flag in case of test failures.
Also fixes reporting of tests that change environment when there are no test
failures.
2015-08-08 22:01:20 -05:00
Zachary Ware a4777f1bef Issue #24751: When running regrtest with '-w', don't fail if re-run succeeds. 2015-08-04 21:53:21 -05:00
Serhiy Storchaka ea4d2875ac Issue #20557: Use specific asserts in io tests. 2015-08-02 15:19:04 +03:00
Robert Collins 2f2c829688 Issue #23254: Document how to close the TCPServer listening socket.
Patch from Martin Panter.
2015-07-29 12:48:42 +12:00
Serhiy Storchaka cf74c1996e Issue #24613: Calling array.fromstring() with self is no longer allowed
to prevent the use-after-free error.  Patch by John Leitch.
2015-07-26 08:49:37 +03:00
Benjamin Peterson 455a2a30a3 proper overflow checks for mymemreplace (closes #24708) 2015-07-24 23:25:35 -07:00
Serhiy Storchaka 3b77d01dbc Issue #24620: Random.setstate() now validates the value of state last element. 2015-07-24 09:02:53 +03:00
Zachary Ware 4734372aa0 Close #24508: Backport the 3.5 MSBuild project files.
The old project files move to PC/VS9.0 and remain supported.

VS2008 is still required to build 2.7; VS2010 (or later, plus Windows SDK 7.1)
is *also* required to use the new project files.
2015-07-16 00:24:48 -05:00
Zachary Ware 79d0e724e3 Backport b80d141a044e 2015-07-13 14:27:29 -05:00
Serhiy Storchaka a1b1e5f7b8 Added regression test for issue24581. 2015-07-08 22:58:55 +03:00
Lars Gustäbel 518602ab11 Issue #24259: tarfile now raises a ReadError if an archive is truncated inside a data segment. 2015-07-06 09:23:04 +02:00
Lars Gustäbel d048003d90 Issue #24514: tarfile now tolerates number fields consisting of only whitespace. 2015-07-02 19:37:08 +02:00
Serhiy Storchaka ab766350b6 Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.
2015-06-29 21:13:54 +03:00
Jason R. Coombs 33b24f5c09 Issue #20387: Backport test from Python 3.4 2015-06-28 13:03:26 -04:00
Serhiy Storchaka 84af51d1b3 Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
functions of the audioop module.  Fixed SystemError when the state is not a
tuple.  Fixed possible memory leak.
2015-06-28 17:51:40 +03:00
Serhiy Storchaka d1d4d8ab99 Issue #24336: Backported test for contextmanager. Patch by Martin Panter. 2015-06-28 17:11:51 +03:00