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
Victor Stinner
744742320f
Issue #23517 : Add "half up" rounding mode to the _PyTime API
2015-09-02 01:43:56 +02:00
Yury Selivanov
b3d531348c
Issue #24975 : Fix AST compilation for PEP 448 syntax.
2015-09-01 16:10:49 -04:00
Raymond Hettinger
7f9f27d767
merge
2015-08-30 09:17:02 -07:00
Raymond Hettinger
9157545c11
merge
2015-08-30 09:15:36 -07:00
Raymond Hettinger
7a3602e7cf
Issue #24931 : Resolve __dict__ conflict in namedtuple subclasses.
2015-08-30 09:13:48 -07:00
Donald Stufft
c332e0946a
Update setuptools to 18.2 and pip to 7.1.2
2015-08-29 13:57:46 -04:00
Serhiy Storchaka
ccb31673a6
Issue #24881 : Fixed setting binary mode in Python implementation of FileIO
...
on Windows and Cygwin. Patch from Akira Li.
2015-08-28 22:20:29 +03:00
Serhiy Storchaka
f0f55a00b7
Issue #24881 : Fixed setting binary mode in Python implementation of FileIO
...
on Windows and Cygwin. Patch from Akira Li.
2015-08-28 22:17:04 +03:00
Robert Collins
fd10a767a2
Issue #21112 : Fix regression in unittest.expectedFailure on subclasses.
...
Patch from Berker Peksag.
2015-08-28 10:36:01 +12:00
Robert Collins
079fc7faff
Issue #21112 : Fix regression in unittest.expectedFailure on subclasses.
...
Patch from Berker Peksag.
2015-08-28 10:35:14 +12:00
Robert Collins
ed599b7c84
Issue #21112 : Fix regression in unittest.expectedFailure on subclasses.
...
Patch from Berker Peksag.
2015-08-28 10:34:51 +12:00
Terry Jan Reedy
54f0e19766
Merge with 3.5
2015-08-27 13:02:47 -04:00
Terry Jan Reedy
73c2194d07
Merge with 3.4
2015-08-27 13:02:27 -04:00
Terry Jan Reedy
8e9296702a
Issue #24790 : correct typo noticed by Eric Smith
2015-08-27 13:02:11 -04:00
Terry Jan Reedy
ae6a75617f
Merge with 3.5
2015-08-26 23:37:47 -04:00
Terry Jan Reedy
eb3849c394
Merge with 3.4
2015-08-26 23:37:31 -04:00
Terry Jan Reedy
2050a1061f
Issue #24790 : Restore unused function.
2015-08-26 23:37:14 -04:00
Terry Jan Reedy
f6f5dbfb1f
Merge with 3.5
2015-08-26 23:14:26 -04:00
Terry Jan Reedy
2ceb55fbea
Merge with 3.4
2015-08-26 23:13:43 -04:00
Terry Jan Reedy
41a27e021e
Issue #24782 : In Idle extension config dialog, replace tabs with sorted list.
...
Patch by Mark Roseman.
2015-08-26 23:13:22 -04:00
Raymond Hettinger
7a1a0bbbf1
merge
2015-08-26 08:09:50 -07:00
Raymond Hettinger
87674ec7d5
Issue #24913 : Fix overrun error in deque.index().
2015-08-26 08:08:38 -07:00
Robert Collins
69de2a576c
Issue #23552 : Timeit now warns when there is substantial (4x) variance
...
between best and worst times. Patch from Serhiy Storchaka.
2015-08-26 12:40:28 +12:00
Larry Hastings
45d1c00831
Merge from 3.5 (with 3.5.0rc2 changes) into default (3.6). Messy!
2015-08-25 14:21:59 -07:00
Larry Hastings
06a7d611da
Merge from Python 3.5.0 (rc2) to Python 3.5.1.
2015-08-25 14:13:55 -07:00
Larry Hastings
db1ccc69f4
Regenerated pydoc topics for Python 3.5.0rc2.
2015-08-24 20:30:34 -07:00
Larry Hastings
1df0b35e3d
Issue #24769 : Interpreter now starts properly when dynamic loading
...
is disabled. Patch by Petr Viktorin.
2015-08-24 19:53:56 -07:00
Donald Stufft
32dfaf7e2a
merge updated pip and setuptools
2015-08-24 16:15:36 -04:00