On Windows, posixpath.abspath still returns paths with backslashes instead of posix forward slashes. If this is the case, several tests fail, so skip them.
(test)
| 26 | ABSTFN = abspath(TESTFN) |
| 27 | |
| 28 | def skip_if_ABSTFN_contains_backslash(test): |
| 29 | """ |
| 30 | On Windows, posixpath.abspath still returns paths with backslashes |
| 31 | instead of posix forward slashes. If this is the case, several tests |
| 32 | fail, so skip them. |
| 33 | """ |
| 34 | found_backslash = '\\' in ABSTFN |
| 35 | msg = "ABSTFN is not a posix path - tests fail" |
| 36 | return [test, unittest.skip(msg)(test)][found_backslash] |
| 37 | |
| 38 | |
| 39 | def _parameterize(*parameters): |
nothing calls this directly
no test coverage detected
searching dependent graphs…