Issue 33861: Minor improvements of tests for os.path. (original) (raw)
When working on a path for I have found that some tests for os.path can be improved, and these changes are worth backporting to older versions (3.6+).
- Test exists(), lexists(), isdir(), isfile(), islink(), ismount() with bytes paths.
- Remove unneeded silencing DeprecationWarning for ismount() with bytes path.
- Test common functions with unencodable and undecodable paths.
- Minor clean up and refactoring.