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
Steve Dower
2ebd8f5194
Issue #25005 : Backout fix for #8232 because of use of unsafe subprocess.call(shell=True)
2015-09-05 11:57:47 -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
Terry Jan Reedy
4fda56f44b
Issue #24745 : Prevent IDLE initialization crash with Tk 8.4; patch by Ned Deily.
2015-09-04 04:37:56 -04: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
Larry Hastings
9f9a00afc0
Merged in storchaka/cpython350 (pull request #13 )
...
Issue #24989
2015-09-03 22:12:08 -07: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
Terry Jan Reedy
a43de00b74
Issue #21192 : Change 'RUN' back to 'RESTART' when running editor file.
2015-09-03 21:26:12 -04: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
Victor Stinner
2ec5bd6fb2
Issue #23517 : fromtimestamp() and utcfromtimestamp() methods of
...
datetime.datetime now round microseconds to nearest with ties going away from
zero (ROUND_HALF_UP), as Python 2 and Python older than 3.3, instead of
rounding towards -Infinity (ROUND_FLOOR).
2015-09-03 09:06:44 +02:00
Terry Jan Reedy
0fa5ef72b7
Merge with 3.5
2015-09-02 22:08:21 -04:00
Terry Jan Reedy
379583e762
Merge with 3.4
2015-09-02 22:08:03 -04:00
Terry Jan Reedy
ac5004f7ce
Issue #21192 : Change 'RUN' back to 'RESTART' when running editor file.
2015-09-02 22:07:44 -04:00
Victor Stinner
be923ac948
Rewrite eintr_tester.py to avoid os.fork()
...
eintr_tester.py calls signal.setitimer() to send signals to the current process
every 100 ms. The test sometimes hangs on FreeBSD. Maybe there is a race
condition in the child process after fork(). It's unsafe to run arbitrary code
after fork().
This change replace os.fork() with a regular call to subprocess.Popen(). This
change avoids the risk of having a child process which continue to execute
eintr_tester.py instead of exiting. It also ensures that the child process
doesn't inherit unexpected file descriptors by mistake.
Since I'm unable to reproduce the issue on FreeBSD, I will have to watch
FreeBSD buildbots to check if the issue is fixed or not.
Remove previous attempt to debug: remove call to
faulthandler.dump_traceback_later().
2015-09-03 01:38:44 +02:00
Victor Stinner
40e47f69b7
Merge 3.5 (test_warnings)
2015-09-03 00:09:37 +02:00
Victor Stinner
4912e7a3fd
Merge 3.4 (test_warnings)
2015-09-03 00:09:26 +02:00
Victor Stinner
1c40552087
Fix test_warnings: don't modify warnings.filters
...
BaseTest now ensures that unittest.TestCase.assertWarns() uses the same
warnings module than warnings.catch_warnings(). Otherwise,
warnings.catch_warnings() will be unable to remove the added filter.
2015-09-03 00:07:47 +02:00
Victor Stinner
ede14ae368
Merge 3.5 (test_gdb)
2015-09-02 23:22:31 +02:00
Victor Stinner
329ca7118f
Merge 3.4 (test_gdb)
2015-09-02 23:21:03 +02:00
Victor Stinner
5b6b4a8c34
test_gdb: use subprocess.Popen context manager to fix ResourceWarning warnings
...
when the test is interrupted (or fail).
2015-09-02 23:19:55 +02:00
Victor Stinner
2f3ac1ea76
test_gdb: fix regex to parse gdb version for SUSE Linux Entreprise
...
Mention also the detected GDB version on verbose mode and on error (if the
major version is smaller than 7).
2015-09-02 23:12:14 +02:00
Yury Selivanov
2051b84f44
Merge 3.5 heads (issue #24975 )
2015-09-02 15:49:30 -04:00
Victor Stinner
2ec558739e
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).
2015-09-02 19:16:07 +02:00
Yury Selivanov
1fa3652e59
Merge 3.5 (issue #24975 )
2015-09-02 15:50:04 -04:00
Victor Stinner
177b8eb34f
test_eintr: try to debug hang on FreeBSD
2015-09-02 17:19:04 +02:00
Victor Stinner
e801c36037
test_gdb: fix ResourceWarning if the test is interrupted
2015-09-02 15:46:00 +02:00
Victor Stinner
6dad8f8962
test_gdb: add debug info to investigate failure on "s390x SLES 3.x" buildbot
2015-09-02 15:44:22 +02:00
Victor Stinner
f08fea9ee8
Issue 24297: Fix test_symbol on Windows
...
Don't rely on end of line. Open files in text mode, not in binary mode.
2015-09-02 14:23:40 +02:00
Victor Stinner
8aad8d6ad3
Issue #23517 : test_time, skip a test checking a corner case on floating point
...
rounding
2015-09-02 13:54:28 +02:00
Victor Stinner
ead144c19b
test_time: add more tests on HALF_UP rounding mode
2015-09-02 11:05:32 +02:00
Victor Stinner
acea9f6208
Issue #23517 : Reintroduce unit tests for the old PyTime API since it's still
...
used.
2015-09-02 10:39:40 +02:00