- 27 Jul, 2017 2 commits
-
-
Victor Stinner authored
* bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915) There is a bug in FreeBSD CURRENT with 64-bit dev_t. Skip the test if dev_t is larger than 32-bit, until the bug is fixed in FreeBSD CURRENT. (cherry picked from commit 12953ffe) * Fix syntax for Python 2.7
-
Victor Stinner authored
* bpo-31028: Fix test_pydoc when run directly Fix get_pydoc_link() of test_pydoc to fix "./python Lib/test/test_pydoc.py": get the absolute path to __file__ to prevent relative directories. * Use realpath() instead of abspath() (cherry picked from commit fd465611)
-
- 26 Jul, 2017 5 commits
-
-
Nir Soffer authored
* bpo-30980: Fix close test to fail test_close_twice was not considering the fact that file_wrapper is duping the file descriptor. Closing the original descriptor left the duped one open, hiding the fact that close protection is not effective. * bpo-30980: Fix double close protection Invalidated self.fd before closing, handling correctly the case when os.close raises. * bpo-30980: Fix fd leak introduced in the fixed test
-
Victor Stinner authored
* bpo-30778: Skip test_bsddb3 on Windows XP * Fix if, don't skip Windows Vista
-
Victor Stinner authored
multiprocessing.Process.is_alive() now removes the process from the _children set if the process completed. The change prevents leaking "dangling" processes. (cherry picked from commit 2db64823)
-
Victor Stinner authored
* bpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027) multiprocessing.Queue.get() with a timeout now polls its reader in non-blocking mode if it succeeded to aquire the lock but the acquire took longer than the timeout. Co-Authored-By: Grzegorz Grzywacz <grzgrzgrz3@gmail.com> (cherry picked from commit 1b7863c3) * bpo-30595: Increase test_queue_feeder_donot_stop_onexc() timeout (#2148) _test_multiprocessing.test_queue_feeder_donot_stop_onexc() now uses a timeout of 1 second on Queue.get(), instead of 0.1 second, for slow buildbots. (cherry picked from commit 8f6eeaf2) (cherry picked from commit e42339d3a08a8fde3349722def85d7a8e49899be)
-
Dong-hee Na authored
-
- 25 Jul, 2017 1 commit
-
-
Aditya Hase authored
Mention that TestCase.assertMultiLineEqual method is used by default when comparing Unicode string when comparing Unicode strings with assertEqual.
-
- 24 Jul, 2017 3 commits
-
-
Victor Stinner authored
bpo-30850: On Windows, test04_lock_timeout2() now tolerates 50 ms whereas 100 ms is expected. The lock sometimes times out after only 58 ms. Windows clocks have a bad resolution and bad accuracy.
-
Ned Deily authored
-
- 21 Jul, 2017 2 commits
-
-
Victor Stinner authored
Fix also regrtest command line parser to allow passing -u extralargefile to run test_zipfile64.
- 20 Jul, 2017 2 commits
-
-
Ned Deily authored
- 19 Jul, 2017 1 commit
-
-
Ammar Askar authored
-
- 16 Jul, 2017 2 commits
-
-
Serhiy Storchaka authored
encoder and decoder. (cherry picked from commit d3aaa2f1)
-
- 13 Jul, 2017 1 commit
-
-
Serhiy Storchaka authored
encoder and decoder.. (cherry picked from commit d3aaa2f1)
-
- 12 Jul, 2017 1 commit
-
-
Xiang Zhang authored
-
- 11 Jul, 2017 1 commit
-
-
Segev Finer authored
* [2.7] Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670) (cherry picked from commit f5232559) * [2.7] Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670). (cherry picked from commit f5232559)
-
- 10 Jul, 2017 2 commits
-
-
Nir Soffer authored
If history-length is set in .inputrc, and the history file is double the history size (or more), history_get(N) returns NULL, and python segfaults. Fix that by checking for NULL return value. It seems that the root cause is incorrect handling of bigger history in readline, but Python should not segfault even if readline returns unexpected value. This issue affects only GNU readline. When using libedit emulation system history size option does not work. This is a backport of the actual fix from master without the test, since the test depends on new run_pty() helper which is not available in 2.7.
-
Kit Sunde authored
Replace `dumps` with `json.dumps`
-
- 06 Jul, 2017 2 commits
-
-
Victor Stinner authored
* bpo-30855: Trying to fix test_use on Windows. Avoid possible weird behavior of WideInt convertion. "winfo id" always returns string hexadecimal representation. (cherry picked from commit b9d67249) * bpo-30855: Trying to fix test_use on Windows. (cherry picked from commit 29a2f7c6) (subTest() removed since it was introduced in Python 3)
-
- 05 Jul, 2017 4 commits
-
-
Serhiy Storchaka authored
This provides more information on test failures.
-
Victor Stinner authored
list_cases() now unload modules, as the test runner does, to prevent a failure in test_xpickle about test.pickletester loaded after loading test_cpickle: ./python -m test --list-cases test_cpickle test_xpickle
-
Victor Stinner authored
Copy Lib/test/test_robotparser.py from master to 2.7 and adapt it for Python 2.7: * Replace urllib.robotparser with robotparser * Adjust HTTPServer import * Replace io.StringIO with StringIO.StringIO * Remove tests on crawl_delay() and request_rate() since these methods were added to Python 3 * Remove subTest() * Add test_main() which explicitly lists all test cases Patch based on the commit 4da0fd06 written by Berker Peksag. Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
-
Victor Stinner authored
* Rename again Lib/test/bisectcmd.py to Lib/test/bisect.py * regrtest now removes '' and Lib/test/ from sys.path * Use absolute import in test_bisect
-
- 04 Jul, 2017 4 commits
-
-
Segev Finer authored
-
Victor Stinner authored
Revert test_bisect.py change: remove "from __future__ import absolute_import".
-
Victor Stinner authored
Sleep 1 ms instead of 0.1 ms to workaround a rounding issue on Windows. On Windows, time.sleep(0.0001) sleeps 0 ms, so collect_in_thread() calls gc.collect() in a loop and tests using this thread takes too long. Sleep 1 ms so time.sleep() sleeps 15.6 ms on Windows.
-
Berker Peksag authored
FXpy doesn't have a Python 3 port and it only supports Python 2.2 and older versions. Reported by Alex Walters on docs@p.o. (cherry picked from commit d3ed2877)
-
- 03 Jul, 2017 4 commits
-
-
Victor Stinner authored
-
Victor Stinner authored
Write header and "Using seed ..." after checking for --list-cases and --list-tests.
-
Serhiy Storchaka authored
I thought I had run the full test suite before the last checkin, but obviously I didn't. test_multibytecodec_support.py isn't really a test file, it is a support file that contains a base test class. Rename it to multibytecodec_support so that regrtest test discovery doesn't think it is a test file that should be run.. (cherry picked from commit 75d9aca9)
-
Victor Stinner authored
* bpo-29512, bpo-30764: Backport regrtest enhancements from 3.5 to 2.7 * bpo-29512: Add test.bisect, bisect failing tests (#2452) Add a new "python3 -m test.bisect" tool to bisect failing tests. It can be used to find which test method(s) leak references, leak files, etc. * bpo-30764: Fix regrtest --fail-env-changed --forever (#2536) (#2539) --forever now stops if a fail changes the environment. * Fix test_bisect: use absolute import
-
- 30 Jun, 2017 3 commits
-
-
Victor Stinner authored
Add missing "import subprocess".
-
Dmitry Tokarev authored
Oh, this is my fault too. I missed this mistake. Thank you for the correction.
-
Dmitry Tokarev authored
-