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)
| 25 | ABSTFN = abspath(TESTFN) |
| 26 | |
| 27 | def skip_if_ABSTFN_contains_backslash(test): |
| 28 | """ |
| 29 | On Windows, posixpath.abspath still returns paths with backslashes |
| 30 | instead of posix forward slashes. If this is the case, several tests |
| 31 | fail, so skip them. |
| 32 | """ |
| 33 | found_backslash = '\\' in ABSTFN |
| 34 | msg = "ABSTFN is not a posix path - tests fail" |
| 35 | return [test, unittest.skip(msg)(test)][found_backslash] |
| 36 | |
| 37 | |
| 38 | def _parameterize(*parameters): |