summaryrefslogtreecommitdiffstats
path: root/test/option/option_profile.py
Commit message (Collapse)AuthorAgeFilesLines
* Cleanups in tests and in frameworkMats Wichmann2020-06-141-11/+2
| | | | | | | | | | | | * Some Py2/Py3 compat blocks were simplified to Py3 only * some sequences of define-cleaup-function + atexit.register were changed to use the decorator (this works if func needs to take no arguments) * Lightly update a bunch of docstrings in TestCmd, and reformat a few places, towards the style we're generally using now. * call_python() in TestCmdTests was modernized to use subprocess.run Signed-off-by: Mats Wichmann <mats@linux.com>
* Tweak a few testsMats Wichmann2019-05-301-22/+19
| | | | | | | | | | | | | "for i in range(len(foo))" idiom changed to iterate directly over lists instead of indexing them. zip() generates the iterator in the case with two lists. reversed() used for the Windows drive-letter test. gdbm is not gone, just renamed. change test to find under either name. Use a context manager for closing StringIO objects opened for capturing standard I/O streams. Signed-off-by: Mats Wichmann <mats@linux.com>
* Speed up option tests for windowsWilliam Deegan2018-09-261-0/+1
|
* Fix name shadowing trap brought to light by py3s changes in module import ↵William Deegan2017-03-131-0/+122
see: http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html#the-name-shadowing-trap