(self)
| 1989 | self.skipTest("Modified guard") |
| 1990 | |
| 1991 | def test_cleanup(self): |
| 1992 | dirname = os.path.join(self.tmptestdir, "test_python_123") |
| 1993 | os.mkdir(dirname) |
| 1994 | filename = os.path.join(self.tmptestdir, "test_python_456") |
| 1995 | open(filename, "wb").close() |
| 1996 | names = [dirname, filename] |
| 1997 | |
| 1998 | cmdargs = ['-m', 'test', |
| 1999 | '--tempdir=%s' % self.tmptestdir, |
| 2000 | '--cleanup'] |
| 2001 | self.run_python(cmdargs) |
| 2002 | |
| 2003 | for name in names: |
| 2004 | self.assertFalse(os.path.exists(name), name) |
| 2005 | |
| 2006 | @unittest.skip("TODO: RUSTPYTHON; flaky") |
| 2007 | @unittest.skipIf(support.is_wasi, |
nothing calls this directly
no test coverage detected