- 25 Mar, 2016 13 commits
-
-
Victor Stinner authored
Replace also other open(filename, "w") with open(filename, "x") to fail if a previous test forgot to remove filename.
-
Raymond Hettinger authored
-
Victor Stinner authored
Changes were backported (transplated) from default to 3.5.
-
Victor Stinner authored
Use -Wd comment line option to log the ResourceWarning.
-
Victor Stinner authored
* multiprocessing: open file with closefd=False to avoid ResourceWarning * _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a previous test forgot to remove TESTFN) * test_sys_exit(): remove TESTFN after each loop iteration Initial patch written by Serhiy Storchaka.
-
Victor Stinner authored
Use -Wd comment line option to log the ResourceWarning.
-
Victor Stinner authored
* multiprocessing: open file with closefd=False to avoid ResourceWarning * _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a previous test forgot to remove TESTFN) * test_sys_exit(): remove TESTFN after each loop iteration Initial patch written by Serhiy Storchaka.
-
Victor Stinner authored
-
Victor Stinner authored
The import machinery now raises a different exception when it fails at Python shutdown.
-
Benjamin Peterson authored
Patch by Oren Milman.
-
Zachary Ware authored
-
Zachary Ware authored
-
Victor Stinner authored
-
- 24 Mar, 2016 19 commits
-
-
Victor Stinner authored
Declare the function even if thread support is disabled.
-
Victor Stinner authored
Issue #26637: The importlib module now emits an ImportError rather than a TypeError if __import__() is tried during the Python shutdown process but sys.path is already cleared (set to None).
-
Victor Stinner authored
Issue #21925: warnings.formatwarning() now catches exceptions when calling linecache.getline() and tracemalloc.get_object_traceback() to be able to log ResourceWarning emitted late during the Python shutdown process.
-
Victor Stinner authored
Issue #21925: warnings.formatwarning() now catches exceptions on linecache.getline(...) to be able to log ResourceWarning emitted late during the Python shutdown process.
-
Victor Stinner authored
test_warnings: only run test_improper_option() and test_warnings_bootstrap() once. The unit test doesn't depend on self.module.
-
Victor Stinner authored
* Rename libregrtest.main_in_temp_cwd() to libregrtest.main() * Add regrtest.main_in_temp_cwd() alias to libregrtest.main() * Move old main_in_temp_cwd() code into libregrtest.Regrtest.main() * Update multiple scripts to call libregrtest.main()
-
Victor Stinner authored
-
Victor Stinner authored
* Move code into a new _main() function * Fix loop to cleanup sys.path * Remove unused import
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
* add create_file() helper function * create files using "x" mode instead of "w" to detect when a previous test forget to remove a file * open file for writing in unbuferred mode (buffering=0) * replace "try/finally: unlink" with self.addCleanup(support.unlink) * register unlink cleanup function *before* creating new files
-
Victor Stinner authored
-
Victor Stinner authored
* Use context manager on urllib objects to ensure that they are closed on error * Use self.addCleanup() to cleanup resources even if a test is interrupted with CTRL+c
-
Victor Stinner authored
* Replace "try/finally: os.remove()" with self.addCleanup(support.unlink) or self.addCleanup(support.rmdir): the support function handles the case when the file doesn't exist * Replace "try/finally: f.close()" with "with open(...) as f:" * test_getsize: add a second test with a different size * Create file using "x" mode to ensure that the file didn't exist before, to detect bugs in tests * Open files in unbuffered mode (buferring=0) to write immediatly data on disk * Replace map() with simpler code * Split isdir() unit test into two units tests to make them less dependant, same change for isfile() test * test_samefile(): test also two different files
-
Victor Stinner authored
Issue #25911: * Try to fix test_os.BytesWalkTests on Windows * Try to mimick better the reference os.DirEntry on Windows * _DummyDirEntry now caches os.stat() result * _DummyDirEntry constructor now tries to get os.stat()
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
* Update code for the name regrtest output format. * Enhance also test_regrtest test on --fromfile
-
Victor Stinner authored
Issue #25911: Use support.check_warnings() to expect or ignore DeprecationWarning in test_os.
-
- 23 Mar, 2016 8 commits
-
-
Victor Stinner authored
Issue #26588: Optimize memory footprint of _tracemalloc before non-zero domain is used. Start with compact key (Py_uintptr_t) and also switch to pointer_t key when the first memory block with a non-zero domain is tracked.
-
Victor Stinner authored
On Windows, socket.setsockopt() raises an OverflowError if the socket option is larger than INT_MAX bytes.
-
Victor Stinner authored
Issue #18787: restore "bin" name in test_spwd but catch KeyError.
-
Victor Stinner authored
Ignore empty lines in stderr.
-
Stefan Krah authored
-
Stefan Krah authored
-
Stefan Krah authored
-
Victor Stinner authored
Issue #18787: try to get the "root" entry which should exist on all UNIX instead of "bin" which doesn't exist on OpenIndiana.
-