summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23517: fromtimestamp() and utcfromtimestamp() methods ofVictor Stinner2015-09-034-8/+14
| | | | | | 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).
* Merge with 3.5Terry Jan Reedy2015-09-031-1/+1
|\
| * Merge with 3.4Terry Jan Reedy2015-09-031-1/+1
| |\
| | * Issue #21192: Change 'RUN' back to 'RESTART' when running editor file.Terry Jan Reedy2015-09-031-1/+1
| | |
* | | Rewrite eintr_tester.py to avoid os.fork()Victor Stinner2015-09-021-101/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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().
* | | Merge 3.5 (monotonic)Victor Stinner2015-09-021-13/+3
|\ \ \ | |/ /
| * | oops, rename pymonotonic_new() to pymonotonic()Victor Stinner2015-09-021-3/+3
| | | | | | | | | | | | | | | I was not supposed to commit the function with the name pymonotonic_new(). I forgot to rename it.
| * | Issue #24707: Remove assertion in monotonic clockVictor Stinner2015-09-021-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge 3.5 (test_warnings)Victor Stinner2015-09-021-0/+6
|\ \ \ | |/ /
| * | Merge 3.4 (test_warnings)Victor Stinner2015-09-021-0/+6
| |\ \ | | |/
| | * Fix test_warnings: don't modify warnings.filtersVictor Stinner2015-09-021-0/+6
| | | | | | | | | | | | | | | | | | 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.
* | | Merge 3.5 (test_gdb)Victor Stinner2015-09-021-19/+29
|\ \ \ | |/ /
| * | Merge 3.4 (test_gdb)Victor Stinner2015-09-021-17/+33
| |\ \ | | |/
| | * test_gdb: use subprocess.Popen context manager to fix ResourceWarning warningsVictor Stinner2015-09-021-20/+29
| | | | | | | | | | | | when the test is interrupted (or fail).
| | * test_gdb: fix regex to parse gdb version for SUSE Linux EntrepriseVictor Stinner2015-09-021-4/+11
| | | | | | | | | | | | | | | Mention also the detected GDB version on verbose mode and on error (if the major version is smaller than 7).
* | | Issue #23517: datetime.timedelta constructor now rounds microseconds to nearestVictor Stinner2015-09-026-34/+26
| | | | | | | | | | | | | | | | | | 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).
* | | Merge with 3.5Zachary Ware2015-09-021-15/+36
|\ \ \ | |/ /
| * | Turn 'rem' comments into a real usage message in PCbuild/build.batZachary Ware2015-09-021-15/+36
| | | | | | | | | | | | | | | Also fixes error in 'kill' target (already fixed in 2.7, somehow the fix didn't make it to this branch).
* | | Merge 3.5 (issue #24975)Yury Selivanov2015-09-023-11/+21
|\ \ \ | |/ /
| * | Merge 3.5 heads (issue #24975)Yury Selivanov2015-09-023-11/+21
| |\ \
| | * | Issue #24975: Fix AST compilation for PEP 448 syntax.Yury Selivanov2015-09-013-11/+21
| | | |
* | | | test_eintr: try to debug hang on FreeBSDVictor Stinner2015-09-021-0/+8
| | | |
* | | | test_gdb: fix ResourceWarning if the test is interruptedVictor Stinner2015-09-021-3/+5
| | | |
* | | | test_gdb: add debug info to investigate failure on "s390x SLES 3.x" buildbotVictor Stinner2015-09-021-3/+7
| | | |
* | | | Merge 3.5 (asyncio doc)Victor Stinner2015-09-021-4/+4
|\ \ \ \ | |/ / /
| * | | Merge 3.4 (asyncio doc)Victor Stinner2015-09-021-4/+4
| |\ \ \ | | | |/ | | |/|
| | * | asyncio doc: fix subprocess sectionsVictor Stinner2015-09-021-4/+4
| | | |
* | | | Issue 24297: Fix test_symbol on WindowsVictor Stinner2015-09-021-14/+21
| | | | | | | | | | | | | | | | Don't rely on end of line. Open files in text mode, not in binary mode.
* | | | Issue #23517: test_time, skip a test checking a corner case on floating pointVictor Stinner2015-09-021-1/+3
| | | | | | | | | | | | | | | | rounding
* | | | Issue #23517: Try to fix test_time on "x86 Ubuntu Shared 3.x" buildbotVictor Stinner2015-09-021-7/+10
| | | |
* | | | test_time: add more tests on HALF_UP rounding modeVictor Stinner2015-09-021-8/+28
| | | |
* | | | Issue #23517: Reintroduce unit tests for the old PyTime API since it's stillVictor Stinner2015-09-021-0/+154
| | | | | | | | | | | | | | | | used.
* | | | Issue #23517: Fix _PyTime_ObjectToDenominator()Victor Stinner2015-09-021-18/+17
| | | | | | | | | | | | | | | | | | | | * initialize numerator on overflow error ensure that numerator is smaller than * denominator.
* | | | Backed out changeset b690bf218702Victor Stinner2015-09-022-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | | Issue #23517: datetime.datetime.fromtimestamp() andVictor Stinner2015-09-012-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Issue #23517: Add "half up" rounding mode to the _PyTime APIVictor Stinner2015-09-014-15/+122
| | | |
* | | | Move assertion inside _PyTime_ObjectToTimeval()Victor Stinner2015-09-012-7/+14
| | | | | | | | | | | | | | | | | | | | Change also _PyTime_FromSeconds() assertion to ensure that the _PyTime_t type is used.
* | | | Refactor pytime.cVictor Stinner2015-09-011-48/+65
| | | | | | | | | | | | | | | | Move code to convert double timestamp to subfunctions.
* | | | mergeRaymond Hettinger2015-09-011-11/+11
|\ \ \ \ | |/ / /
| * | | Improve tutorial suggestion for looping techniquesRaymond Hettinger2015-09-011-11/+11
| | | |
* | | | Merge 3.5Yury Selivanov2015-08-311-0/+7
|\ \ \ \ | |/ / /
| * | | Make asyncio provisionalYury Selivanov2015-08-311-0/+7
| | | |
* | | | Issue #24952: Merge 3.5 into 3.6Martin Panter2015-08-314-2/+8
|\ \ \ \ | |/ / /
| * | | Issue #24952: Merge 3.4 into 3.5Martin Panter2015-08-314-2/+8
| |\ \ \ | | |/ /
| | * | Issue #24952: Clarify default argument of stack_size() in threading, _threadMartin Panter2015-08-314-2/+8
| | | | | | | | | | | | | | | | Patch from Mattip.
* | | | merge 3.5 (#24963)Benjamin Peterson2015-08-301-1/+1
|\ \ \ \ | |/ / /
| * | | merge 3.4 (#24963)Benjamin Peterson2015-08-301-1/+1
| |\ \ \ | | |/ /
| | * | fix spelling that was a bit confused (closes #24963)Benjamin Peterson2015-08-301-1/+1
| | | |
* | | | mergeRaymond Hettinger2015-08-303-14/+15
|\ \ \ \ | |/ / /
| * | | mergeRaymond Hettinger2015-08-303-14/+15
| |\ \ \ | | |/ /