Lines Matching refs:TemporaryDirectory

154             "TemporaryDirectory" : 1,
275 with tempfile.TemporaryDirectory() as our_temp_directory:
1493 """Test TemporaryDirectory()."""
1499 tmp = tempfile.TemporaryDirectory(
1521 with tempfile.TemporaryDirectory() as nonexistent:
1524 tempfile.TemporaryDirectory(dir=nonexistent)
1528 # A TemporaryDirectory is deleted when cleaned up
1533 "TemporaryDirectory %s does not exist" % d.name)
1536 "TemporaryDirectory %s exists after cleanup" % d.name)
1542 with tempfile.TemporaryDirectory() as working_dir:
1547 f"TemporaryDirectory {temp_path!s} does not exist")
1554 f"TemporaryDirectory {temp_path!s}")
1558 f"TemporaryDirectory {temp_path!s} existence state unexpected")
1562 f"TemporaryDirectory {temp_path!s} exists after cleanup")
1577 "TemporaryDirectory %s exists after cleanup" % d1.name)
1684 # A TemporaryDirectory is deleted when garbage collected
1691 "TemporaryDirectory %s exists after __del__" % name)
1697 """Test that ignoring errors works when TemporaryDirectory is gced."""
1698 with tempfile.TemporaryDirectory() as working_dir:
1703 f"TemporaryDirectory {temp_path!s} does not exist")
1710 f"TemporaryDirectory {temp_path!s}")
1714 f"TemporaryDirectory {temp_path!s} existence state unexpected")
1717 # A TemporaryDirectory may be cleaned up during shutdown
1728 tmp = tempfile.TemporaryDirectory(dir={dir!r})
1743 "TemporaryDirectory %s exists after cleanup" % tmp_name)
1750 with tempfile.TemporaryDirectory() as working_dir:
1757 temp_dir = tempfile.TemporaryDirectory(
1775 f"TemporaryDirectory {temp_path!s}")
1779 f"TemporaryDirectory {temp_path!s} existence state unexpected")
1794 with tempfile.TemporaryDirectory(dir={dir!r}) as tmp:
1804 "TemporaryDirectory %s exists after cleanup" % tmp_name)
1823 "TemporaryDirectory %s exists after __del__" % name)