Create a temporary directory that will be cleaned up. Returns the path of the directory.
(self, prefix=None)
| 172 | class BaseTest: |
| 173 | |
| 174 | def mkdtemp(self, prefix=None): |
| 175 | """Create a temporary directory that will be cleaned up. |
| 176 | |
| 177 | Returns the path of the directory. |
| 178 | """ |
| 179 | d = tempfile.mkdtemp(prefix=prefix, dir=os.getcwd()) |
| 180 | self.addCleanup(os_helper.rmtree, d) |
| 181 | return d |
| 182 | |
| 183 | |
| 184 | class TestRmTree(BaseTest, unittest.TestCase): |
no test coverage detected