Victor Stinner
f11d0d2c0d
Issue #25122 : try to debug test_eintr hang on FreeBSD
...
* Add verbose mode to test_eintr
* Always enable verbose mode in test_eintr
* Use faulthandler.dump_traceback_later() with a timeout of 15 minutes in
eintr_tester.py
2015-09-15 12:15:59 +02:00
Victor Stinner
024364a89a
Merge 3.5 (os.waitpid)
2015-09-15 10:24:27 +02:00
Victor Stinner
d3ffd32767
Issue #25118 : Fix a regression of Python 3.5.0 in os.waitpid() on Windows.
...
Add an unit test on os.waitpid()
2015-09-15 10:11:03 +02:00
Victor Stinner
13e457c808
Merge 3.5 (test_gdb)
2015-09-15 00:23:20 +02:00
Victor Stinner
d64cfc215c
Merge 3.4 (test_gdb)
2015-09-15 00:23:08 +02:00
Victor Stinner
a578eb34ba
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:22:55 +02:00
Kristján Valur Jónsson
a8a930f863
Issue #25021 : Merge 3.5 to default
2015-09-12 16:36:15 +00:00
Kristján Valur Jónsson
d7f65e5763
Issue #25021 : Merge 3.4 to 3.5
2015-09-12 16:34:33 +00:00
Kristján Valur Jónsson
95c3e6cb22
Issue #25021 : Merge from 3.3 to 3.4
2015-09-12 15:30:23 +00:00
Kristján Valur Jónsson
102764a1f6
Issue #25021 : Correctly make sure that product.__setstate__ does not access
...
invalid memory.
2015-09-12 15:20:54 +00:00
Serhiy Storchaka
233cdb3e9c
Marked keystrokes with the :kbd: role.
...
Fixed the case of the "Ctrl-" prefixes.
2015-09-12 17:46:56 +03:00
Serhiy Storchaka
153627c111
Marked keystrokes with the :kbd: role.
...
Fixed the case of the "Ctrl-" prefixes.
2015-09-12 17:46:20 +03:00
Serhiy Storchaka
0424eaf753
Marked keystrokes with the :kbd: role.
...
Fixed the case of the "Ctrl-" prefixes.
2015-09-12 17:45:25 +03:00
Martin Panter
6d66b8b019
Issue #16473 : Merge codecs doc and test from 3.5
2015-09-12 01:24:33 +00:00
Martin Panter
9ab96946ee
Issue #16473 : Merge codecs doc and test from 3.4 into 3.5
2015-09-12 01:22:17 +00:00
Martin Panter
06171bd52a
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
Victor Stinner
c60542b12b
pytime: add _PyTime_check_mul_overflow() macro to avoid undefined behaviour
...
Overflow test in test_FromSecondsObject() fails on FreeBSD 10.0 buildbot which
uses clang. clang implements more aggressive optimization which gives
different result than GCC on undefined behaviours.
Check if a multiplication will overflow, instead of checking if a
multiplicatin had overflowed, to avoid undefined behaviour.
Add also debug information if the test on overflow fails.
2015-09-10 15:55:07 +02:00
Victor Stinner
350b51839a
Fix test_time on platform with 32-bit time_t type
...
Filter also values for check_float_rounding().
2015-09-10 11:45:06 +02:00
Victor Stinner
4237d3474c
Fix test_time on platform with 32-bit time_t type
...
Filter values which would overflow when converted to a C time_t type.
2015-09-10 10:10:39 +02:00
Victor Stinner
9c72f9b30a
Fix test_time on Windows
...
* Filter values which would overflow on conversion to the C long type
(for timeval.tv_sec).
* Adjust also the message of OverflowError on PyTime conversions
* test_time: add debug information if a timestamp conversion fails
2015-09-10 09:10:14 +02:00
Victor Stinner
3e2c8d84c6
test_time: rewrite PyTime API rounding tests
...
Drop all hardcoded tests. Instead, reimplement each function in Python, usually
using decimal.Decimal for the rounding mode.
Add much more values to the dataset. Test various timestamp units from
picroseconds to seconds, in integer and float.
Enhance also _PyTime_AsSecondsDouble().
2015-09-09 22:32:48 +02:00
Martin Panter
3f560c16e5
Merge 3.5 into 3.6
2015-09-09 06:28:08 +00:00
Martin Panter
6088b7bd49
Merge 3.4 into 3.5
2015-09-09 06:27:43 +00:00
Martin Panter
9499413508
os.sendfile(headers=None, trailers=None) arguments are not actually accepted
...
Needs to be tested on a BSD.
2015-09-09 05:29:24 +00:00
Martin Panter
a122b5a1fd
Issue #23738 : Merge 3.5 into 3.6
2015-09-09 03:01:17 +00:00
Martin Panter
0ff89099c7
Issue #23738 : Merge 3.4 into 3.5
2015-09-09 01:56:53 +00:00
Martin Panter
bf19d16950
Issue #23738 : Document and test actual keyword parameter names
...
Also fix signature because os.utime(..., ns=None) is not allowed.
2015-09-09 01:01:13 +00:00
Victor Stinner
cd5d765b0e
cleanup datetime code
...
remove scories of round half up code and debug code.
2015-09-09 01:09:21 +02:00
Victor Stinner
7667f58151
Issue #23517 : fromtimestamp() and utcfromtimestamp() methods of
...
datetime.datetime now round microseconds to nearest with ties going to nearest
even integer (ROUND_HALF_EVEN), as round(float), instead of rounding towards
-Infinity (ROUND_FLOOR).
pytime API: replace _PyTime_ROUND_HALF_UP with _PyTime_ROUND_HALF_EVEN. Fix
also _PyTime_Divide() for negative numbers.
_PyTime_AsTimeval_impl() now reuses _PyTime_Divide() instead of reimplementing
rounding modes.
2015-09-09 01:02:23 +02:00
Victor Stinner
69cc487df4
Revert change 0eb8c182131e:
...
"""Issue #23517 : datetime.timedelta constructor now rounds microseconds to
nearest with ties going away from zero (ROUND_HALF_UP), as Python 2 and Python
older than 3.3, instead of rounding to nearest with ties going to nearest even
integer (ROUND_HALF_EVEN)."""
datetime.timedelta uses rounding mode ROUND_HALF_EVEN again.
2015-09-08 23:58:54 +02:00
Serhiy Storchaka
8a6023d05f
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 10:00:43 +03:00
Serhiy Storchaka
050a143a3f
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 10:00:22 +03:00
Serhiy Storchaka
5558d4f2f8
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
899f32fe1e
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:53:42 +03:00
Serhiy Storchaka
d941d7a586
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:51:00 +03:00
Serhiy Storchaka
2504cecebd
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:23 +03:00
Serhiy Storchaka
6574a38327
Raise more correct exception on overflow in setting buffer_size attribute of
...
expat parser.
2015-09-07 22:54:33 +03:00
Serhiy Storchaka
6c8b66cd26
Raise more correct exception on overflow in setting buffer_size attribute of
...
expat parser.
2015-09-07 22:54:08 +03:00
Serhiy Storchaka
de5f9f4f70
Raise more correct exception on overflow in setting buffer_size attribute of
...
expat parser.
2015-09-07 22:51:56 +03:00
Serhiy Storchaka
9df7035f5b
Issue #25019 : Fixed a crash caused by setting non-string key of expat parser.
...
Added additional tests for expat parser attributes.
Based on patch by John Leitch.
2015-09-07 22:41:04 +03:00
Serhiy Storchaka
3b1bc7828d
Issue #25019 : Fixed a crash caused by setting non-string key of expat parser.
...
Added additional tests for expat parser attributes.
Based on patch by John Leitch.
2015-09-07 22:38:34 +03:00
Serhiy Storchaka
931331a328
Issue #25019 : Fixed a crash caused by setting non-string key of expat parser.
...
Added additional tests for expat parser attributes.
Based on patch by John Leitch.
2015-09-07 22:37:02 +03:00
Serhiy Storchaka
adbb4d8de7
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:59:38 +03:00
Serhiy Storchaka
ae0d7527f3
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:59:24 +03:00
Serhiy Storchaka
eba8feedfa
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
8bfb47a441
Explicitly test archive name in shutil.make_archive() tests to expose failure
...
details in issue25018.
2015-09-07 13:57:21 +03:00
Serhiy Storchaka
8c85a2083f
Explicitly test archive name in shutil.make_archive() tests to expose failure
...
details in issue25018.
2015-09-07 13:56:49 +03:00
Serhiy Storchaka
a091a8221e
Explicitly test archive name in shutil.make_archive() tests to expose failure
...
details in issue25018.
2015-09-07 13:55:25 +03:00
Steve Dower
45fd95155f
Merge from 3.5
2015-09-06 22:31:26 -07:00
Steve Dower
96d4943846
Reapplied change to test_warnings.py to test_warnings/__init__.py.
2015-09-06 22:30:40 -07:00
Steve Dower
f35bd306ff
Merge from 3.5.0 branch.
2015-09-06 22:27:42 -07:00
Martin Panter
1b8be1fbe5
Issue #25004 : Merge 3.5 into 3.6
2015-09-07 04:07:06 +00:00
Martin Panter
da19767b86
Issue #25004 : Merge 3.4 into 3.5
2015-09-07 04:04:40 +00:00
Martin Panter
e8d58d1f02
Issue #25004 : Handle out-of-disk-space error in LargeMmapTests
...
Patch from John Beck.
2015-09-07 02:57:47 +00:00
Steve Dower
e5b5895b5b
Issue #24917 : time_strftime() buffer over-read.
2015-09-06 19:20:51 -07:00
Ezio Melotti
564cf7b62c
#23144 : merge with 3.5.
2015-09-06 21:49:48 +03:00
Ezio Melotti
20a2c6482e
#23144 : merge with 3.4.
2015-09-06 21:44:45 +03:00
Ezio Melotti
6f2bb98966
#23144 : Make sure that HTMLParser.feed() returns all the data, even when convert_charrefs is True.
2015-09-06 21:38:06 +03:00
Alexander Belopolsky
7827a5b7c2
Closes Issue#22241: timezone.utc name is now plain 'UTC', not 'UTC-00:00'.
2015-09-06 13:07:21 -04:00
Serhiy Storchaka
40dc328cc2
Fix, refactor and extend tests for shutil.make_archive().
2015-09-06 18:34:22 +03:00
Serhiy Storchaka
2ba39800e5
Fix, refactor and extend tests for shutil.make_archive().
2015-09-06 18:33:52 +03:00
Serhiy Storchaka
527ef0792f
Fix, refactor and extend tests for shutil.make_archive().
2015-09-06 18:33:19 +03:00
Serhiy Storchaka
8fecd42d26
Use support.change_cwd() in tests.
2015-09-06 14:15:40 +03:00
Serhiy Storchaka
5fbadb63ef
Use support.change_cwd() in tests.
2015-09-06 14:14:49 +03:00
Serhiy Storchaka
2a23adf440
Use support.change_cwd() in tests.
2015-09-06 14:13:25 +03:00
Larry Hastings
714e49371b
Issue #24305 : Prevent import subsystem stack frames from being counted
...
by the warnings.warn(stacklevel=) parameter.
2015-09-06 00:39:37 -07:00
Larry Hastings
62b24624dd
Backing out 09b62202d9b7; the tests fail on Linux, and it needs a re-think.
2015-09-06 00:31:02 -07:00
Steve Dower
643d6d3135
Issue #24917 : Backed out changeset 09b62202d9b7
2015-09-05 23:12:18 -07:00
Steve Dower
dcaf4ccf3f
Issue #24917 : Backed out changeset 09b62202d9b7
2015-09-05 23:11:53 -07:00
Steve Dower
74a7b8f027
Issue #24917 : time_strftime() Buffer Over-read. Patch by John Leitch.
2015-09-05 21:00:33 -07:00
Steve Dower
237060abb4
Merge from 3.5.0 release branch
2015-09-05 20:59:20 -07:00
Larry Hastings
055a9e0bc8
Merged in ncoghlan/cpython350 (pull request #17 )
2015-09-05 20:53:04 -07:00
Terry Jan Reedy
5f9525b115
Merge with 3.5
2015-09-05 19:17:49 -04:00
Terry Jan Reedy
e989bf587c
merge from 3.4
2015-09-05 19:17:24 -04:00
Terry Jan Reedy
ca3f435fe6
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:26 -04:00
Guido van Rossum
ba5f59089a
Issue #24912 : Prevent __class__ assignment to immutable built-in objects. (Merge 3.5 -> 3.6)
2015-09-05 15:20:57 -07:00
Guido van Rossum
37fdcbc4c3
Issue #24912 : Prevent __class__ assignment to immutable built-in objects. (Merge 3.5.0 -> 3.5)
2015-09-05 15:20:08 -07:00
Steve Dower
373602fa3f
Issue #24917 : time_strftime() Buffer Over-read. Patch by John Leitch.
2015-09-05 12:16:06 -07:00
Nick Coghlan
9d3c61c86a
Close #24748 : Restore imp.load_dynamic compatibility
...
To resolve a compatibility problem found with py2exe and
pywin32, imp.load_dynamic() once again ignores previously loaded modules
to support Python modules replacing themselves with extension modules.
Patch by Petr Viktorin.
2015-09-05 21:05:05 +10:00
Victor Stinner
8820a350d7
Issue #23517 : Skip a datetime test on Windows
...
The test calls gmtime(-1)/localtime(-1) which is not supported on Windows.
2015-09-05 10:50:20 +02:00
Guido van Rossum
7d293ee97d
Issue #24912 : Prevent __class__ assignment to immutable built-in objects.
2015-09-04 20:54:07 -07:00
Victor Stinner
adfefa527a
Issue #23517 : Fix implementation of the ROUND_HALF_UP rounding mode in
...
datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp().
microseconds sign should be kept before rounding.
2015-09-04 23:57:25 +02:00
Guido van Rossum
1b66910537
Fix issue #24635 .
2015-09-04 12:15:54 -07:00
Guido van Rossum
82b63fadd2
Issue #24635 : Fixed flakiness in test_typing.py. (Merge from 3.5.)
2015-09-04 12:05:03 -07:00
Guido van Rossum
647bae6c52
Issue #24635 : Fixed flakiness in test_typing.py.
2015-09-04 12:00:06 -07:00
Victor Stinner
110f9e3538
test_time: add tests on HALF_UP rounding mode for _PyTime_ObjectToTime_t() and
...
_PyTime_ObjectToTimespec()
2015-09-04 10:31:16 +02:00
Serhiy Storchaka
4e63f7a2b4
Issue #24989 : Fixed buffer overread in BytesIO.readline() if a position is
...
set beyond size. Based on patch by John Leitch.
2015-09-04 07:48:19 +03:00
Serhiy Storchaka
fb397790d2
Issue #24989 : Fixed buffer overread in BytesIO.readline() if a position is
...
set beyond size. Based on patch by John Leitch.
2015-09-04 01:08:54 +03:00
Serhiy Storchaka
594e54c765
Issue #24989 : Fixed buffer overread in BytesIO.readline() if a position is
...
set beyond size. Based on patch by John Leitch.
2015-09-04 01:08:03 +03:00
Brett Cannon
df6b544ff6
Issue #24913 : Fix overrun error in deque.index().
...
Reported by John Leitch and Bryce Darling, patch by Raymond Hettinger.
2015-09-03 10:15:03 -07:00
Victor Stinner
304d528715
Merge 3.5 (test_gdb)
2015-09-03 15:43:06 +02:00
Victor Stinner
aba2466d09
Merge 3.4 (test_gdb)
2015-09-03 15:42:45 +02:00
Victor Stinner
479fea63e1
test_gdb: oops, the regex to parse the gdb version was still too strict
2015-09-03 15:42:26 +02:00
Victor Stinner
a7b76e0cbe
test_wsgiref: add missing import (support)
2015-09-03 12:14:25 +02:00
Senthil Kumaran
d5da634dfc
Merge with 3.6. Fix test_wsgiref execution from the test module.
2015-09-03 02:28:03 -07:00
Senthil Kumaran
b541e58b7a
Merge with 3.5. Fix test_wsgiref execution from the test module.
2015-09-03 02:27:18 -07:00
Senthil Kumaran
22f2c0e215
Fix test_wsgiref execution from the test module.
2015-09-03 02:26:31 -07:00
Victor Stinner
5b4674db1d
Merge 3.5 (test_gdb)
2015-09-03 09:46:24 +02:00
Victor Stinner
ccc546c658
Merge 3.4 (test_gdb)
2015-09-03 09:46:11 +02:00
Victor Stinner
26afae4019
test_gdb: fix regex to parse GDB version for 'GNU gdb 6.1.1 [FreeBSD]\n'
2015-09-03 09:45:53 +02:00