(self)
| 2354 | |
| 2355 | |
| 2356 | def test_listdir_scandir(self): |
| 2357 | self._verify_available("HAVE_FDOPENDIR") |
| 2358 | if self.mac_ver >= (10, 10): |
| 2359 | self.assertIn("HAVE_FDOPENDIR", posix._have_functions) |
| 2360 | |
| 2361 | else: |
| 2362 | self.assertNotIn("HAVE_FDOPENDIR", posix._have_functions) |
| 2363 | |
| 2364 | with self.assertRaisesRegex(TypeError, "listdir: path should be string, bytes, os.PathLike or None, not int"): |
| 2365 | os.listdir(0) |
| 2366 | |
| 2367 | with self.assertRaisesRegex(TypeError, "scandir: path should be string, bytes, os.PathLike or None, not int"): |
| 2368 | os.scandir(0) |
| 2369 | |
| 2370 | def test_mkdir(self): |
| 2371 | self._verify_available("HAVE_MKDIRAT") |
nothing calls this directly
no test coverage detected