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
5a682c9ca5
Merge 3.5 (monotonic)
2015-09-03 00:15:23 +02:00
Victor Stinner
5ad5821d09
oops, rename pymonotonic_new() to pymonotonic()
...
I was not supposed to commit the function with the name pymonotonic_new(). I
forgot to rename it.
2015-09-03 00:14:58 +02:00
Victor Stinner
c3c616c3d1
Issue #24707 : Remove assertion in monotonic clock
...
Don't check anymore at runtime that the monotonic clock doesn't go backward.
Yes, it happens. It occurs sometimes each month on a Debian buildbot slave
running in a VM.
The problem is that Python cannot do anything useful if a monotonic clock goes
backward. It was decided in the PEP 418 to not fix the system, but only expose
the clock provided by the OS.
2015-09-03 00:13:46 +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
Zachary Ware
6732343ade
Turn 'rem' comments into a real usage message in PCbuild/build.bat
...
Also fixes error in 'kill' target (already fixed in 2.7, somehow the fix
didn't make it to this branch).
2015-09-02 13:21:19 -05: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
Zachary Ware
8cbb013553
Merge with 3.5
2015-09-02 15:01:42 -05: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
1101c58737
Merge 3.5 (asyncio doc)
2015-09-02 15:41:08 +02:00
Victor Stinner
44a25faf7c
Merge 3.4 (asyncio doc)
2015-09-02 15:40:56 +02:00
Victor Stinner
5492d358e4
asyncio doc: fix subprocess sections
2015-09-02 15:39:01 +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
24b822e21e
Issue #23517 : Try to fix test_time on "x86 Ubuntu Shared 3.x" buildbot
2015-09-02 11:58:56 +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
67edcc905d
Issue #23517 : Fix _PyTime_ObjectToDenominator()
...
* initialize numerator on overflow error ensure that numerator is smaller than
* denominator.
2015-09-02 10:37:46 +02:00
Victor Stinner
a53ec7a91a
Backed out changeset b690bf218702
...
Issue #23517 : the change broke test_datetime. datetime.timedelta() rounding
mode must also be changed, and test_datetime must be updated for the new
rounding mode (half up).
2015-09-02 10:10:26 +02:00
Victor Stinner
265e1259e4
Issue #23517 : datetime.datetime.fromtimestamp() and
...
datetime.datetime.utcfromtimestamp() now rounds to nearest with ties going away
from zero, instead of rounding towards minus infinity (-inf), as Python 2 and
Python older than 3.3.
2015-09-02 01:57:23 +02:00
Victor Stinner
744742320f
Issue #23517 : Add "half up" rounding mode to the _PyTime API
2015-09-02 01:43:56 +02:00
Victor Stinner
bbdda21a7a
Move assertion inside _PyTime_ObjectToTimeval()
...
Change also _PyTime_FromSeconds() assertion to ensure that the _PyTime_t type
is used.
2015-09-02 00:50:43 +02:00
Victor Stinner
53e137c8dd
Refactor pytime.c
...
Move code to convert double timestamp to subfunctions.
2015-09-02 00:49:16 +02:00
Yury Selivanov
b3d531348c
Issue #24975 : Fix AST compilation for PEP 448 syntax.
2015-09-01 16:10:49 -04:00
Raymond Hettinger
799b05b052
merge
2015-09-01 02:33:20 -07:00
Raymond Hettinger
502bf511b3
Improve tutorial suggestion for looping techniques
2015-09-01 02:33:02 -07:00
Yury Selivanov
c994cd21de
Merge 3.5
2015-08-31 11:45:11 -04:00
Yury Selivanov
c52e41d6b9
Make asyncio provisional
2015-08-31 11:42:31 -04:00
Martin Panter
81174d749a
Issue #24952 : Merge 3.5 into 3.6
2015-08-31 03:26:46 +00:00
Martin Panter
e721b7cb8b
Issue #24952 : Merge 3.4 into 3.5
2015-08-31 03:25:34 +00:00
Martin Panter
31e7f50d4c
Issue #24952 : Clarify default argument of stack_size() in threading, _thread
...
Patch from Mattip.
2015-08-31 03:15:52 +00:00
Benjamin Peterson
902adbb393
merge 3.5 ( #24963 )
2015-08-30 14:42:59 -07:00
Benjamin Peterson
1498461a7a
merge 3.4 ( #24963 )
2015-08-30 14:42:49 -07:00
Benjamin Peterson
0612ffe8c8
fix spelling that was a bit confused ( closes #24963 )
2015-08-30 14:42:38 -07: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
Zachary Ware
46c9c0d61c
Issue #24272 : Merge with 3.5
2015-08-29 22:40:37 -05:00
Zachary Ware
ce50802679
Issue #24272 : Remove usage of default reST role from typing docs
2015-08-29 22:39:47 -05:00
Zachary Ware
e2f2554d5e
Closes #24962 : Merge with 3.5
2015-08-29 22:27:12 -05:00