summaryrefslogtreecommitdiffstats
path: root/Lib/test/support/script_helper.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42639: Add script_helper.run_test_script() (GH-23777)Victor Stinner2020-12-151-0/+32
| | | | | | * Add run_test_script() function to test.support.script_helper. * Rename Lib/test/eintrdata/eintr_tester.py to Lib/test/_test_eintr.py. * test_eintr.py uses run_test_script().
* bpo-40275: Use new test.support helper submodules in tests (GH-20849)Hai Shi2020-06-251-1/+1
|
* bpo-38991: Remove test.support.strip_python_stderr() (GH-17490)Victor Stinner2019-12-081-2/+1
| | | | | test.support: run_python_until_end(), assert_python_ok() and assert_python_failure() functions no longer strip whitespaces from stderr.
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-011-1/+1
|
* bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929)Serhiy Storchaka2019-03-051-28/+23
|
* bpo-33053: -m now adds *starting* directory to sys.path (GH-6231)Nick Coghlan2018-03-251-1/+2
| | | | | | | | | | | | Historically, -m added the empty string as sys.path zero, meaning it resolved imports against the current working directory, the same way -c and the interactive prompt do. This changes the sys.path initialisation to add the *starting* working directory as sys.path[0] instead, such that changes to the working directory while the program is running will have no effect on imports when using the -m switch.
* Improves the ability to build in CI (GH-5728)Steve Dower2018-02-181-1/+8
|
* bpo-28180: Implementation for PEP 538 (#659)Nick Coghlan2017-06-111-26/+30
| | | | | | | | | | - new PYTHONCOERCECLOCALE config setting - coerces legacy C locale to C.UTF-8, C.utf8 or UTF-8 by default - always uses C.UTF-8 on Android - uses `surrogateescape` on stdin and stdout in the coercion target locales - configure option to disable locale coercion at build time - configure option to disable C locale warning at build time
* Merge 3.6Victor Stinner2017-01-121-7/+18
|\
| * Fix script_helper.run_python_until_end(): copy SYSTEMROOTVictor Stinner2017-01-121-7/+18
| | | | | | | | | | | | Windows requires at least the SYSTEMROOT environment variable to start Python. If run_python_until_end() doesn't copy SYSTEMROOT, the function always fail on Windows.
* | Remove unused imports.Serhiy Storchaka2016-12-161-3/+0
|/
* script_helper: kill the subprocess on errorVictor Stinner2016-08-171-8/+8
| | | | | | | | If Popen.communicate() raises an exception, kill the child process to not leave a running child process in background and maybe create a zombi process. This change fixes a ResourceWarning in Python 3.6 when unit tests are interrupted by CTRL+c.
* Issue #18300: Set TERM='' by default in assert_python_*Berker Peksag2016-06-241-0/+4
|
* * Re-fix issue #19284: Don't generate the no-op -R command lineGregory P. Smith2015-12-141-1/+1
| | | | | | | | parameter to "enable" the always on sys.flags.hash_randomization in _args_from_interpreter_flags() used by multiprocessing and some unittests. This simplifies the code. * assert_python_ok docstring typo fix. * Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed.
* Fix remaining tests and remove an unused import.Berker Peksag2015-05-061-1/+1
|
* Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-0/+244
Patch by Christie Wilson.