summaryrefslogtreecommitdiffstats
path: root/test/CacheDir/option--cr.py
Commit message (Collapse)AuthorAgeFilesLines
* [PYPY3] [PY 3.8] CacheDir tests use context managersMats Wichmann2019-03-021-5/+6
| | | | | | | | | | | | | | | | | Python 3.8 complains about unclosed files on nearly all of the CacheDir tests. PyPy3 fails 8 of the 20 tests for the same reason, though since it's based on an earlier version of Python (3.5 at the moment) it does not display the resourcewarning messages. Update sequences of open().write() which are the primary problem area to use context managers for automatic closing, and for consistency, the rest of the open/read/write stuff as well. With this change, all these tests pass in PyPy3. Python 3.8 does not, as it is spewing other warning messages which also end up in the stderr, which is fatal to this set of tests, but it has quieted the warnings from the CacheDir tests themselves. Signed-off-by: Mats Wichmann <mats@linux.com>
* More changes to speed up testing on windows.William Deegan2018-09-261-1/+2
|
* py2/3 fixes. mostly mode=r on must_match. Also skip the symlink test on ↵William Deegan2017-03-121-7/+7
| | | | windows because os.symlink exists on py3 (didn't in py2), but requires permissions to work on windows which aren't default
* remove rb/wb from file opens, not needed py2/3William Deegan2017-03-111-3/+3
|
* Adding documentation and a couple of testsTom Tanner2013-10-081-0/+138