(path)
| 67 | self.addCleanup(restore_isdir) |
| 68 | |
| 69 | def isfile(path): |
| 70 | # another_dir is not a package and so shouldn't be recursed into |
| 71 | return not path.endswith('dir') and not 'another_dir' in path |
| 72 | os.path.isfile = isfile |
| 73 | self.addCleanup(restore_isfile) |
| 74 |
no test coverage detected