Skip to content

Commit 29231a2

Browse files
committed
Switch to tempfile.TemporaryDirectory()
1 parent 09abc04 commit 29231a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/selenium/pbtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def on_travis(self):
164164
def chrome_manager(self):
165165
opts = ChromeOptions()
166166
opts.add_argument("--load-extension=" + self.extension_path)
167-
opts.add_argument(f"--user-data-dir={mkdtemp()}")
167+
opts.add_argument(f"--user-data-dir={tempfile.TemporaryDirectory()}")
168168
opts.binary_location = self.browser_path
169169

170170
# TODO not yet in Firefox (w/o hacks anyway):

0 commit comments

Comments
 (0)