(self)
| 429 | extant[i] = self.do_create(pre="aa") |
| 430 | |
| 431 | def test_choose_directory(self): |
| 432 | # _mkstemp_inner can create files in a user-selected directory |
| 433 | dir = tempfile.mkdtemp() |
| 434 | try: |
| 435 | self.do_create(dir=dir).write(b"blat") |
| 436 | self.do_create(dir=os_helper.FakePath(dir)).write(b"blat") |
| 437 | finally: |
| 438 | support.gc_collect() # For PyPy or other GCs. |
| 439 | os.rmdir(dir) |
| 440 | |
| 441 | @os_helper.skip_unless_working_chmod |
| 442 | def test_file_mode(self): |