diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-02-01 18:29:00 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-02 17:48:43 -0500 |
commit | 18b815e33627865b8f4d13f29e2e6e4dc7670f1d (patch) | |
tree | 7ee1b9af60fa161ef4356ae28ecf7e2c94a5cb0e /tools/prefetch_test.py | |
parent | f84da880bb5bd8fadd7c884ecfeb48aa5b7b9c08 (diff) |
Support --fmt
Diffstat (limited to 'tools/prefetch_test.py')
-rwxr-xr-x | tools/prefetch_test.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/prefetch_test.py b/tools/prefetch_test.py index bc106d5f5..3024aedf3 100755 --- a/tools/prefetch_test.py +++ b/tools/prefetch_test.py @@ -2,8 +2,7 @@ # Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import os import sys -from util import tests_path, run_output, build_path, executable_suffix, green_ok -import tempfile +from util import mkdtemp, tests_path, run_output, green_ok import shutil @@ -11,11 +10,7 @@ def prefetch_test(deno_exe): sys.stdout.write("prefetch_test...") sys.stdout.flush() - # On Windows, set the base directory that mkdtemp() uses explicitly. If not, - # it'll use the short (8.3) path to the temp dir, which triggers the error - # 'TS5009: Cannot find the common subdirectory path for the input files.' - temp_dir = os.environ["TEMP"] if os.name == 'nt' else None - deno_dir = tempfile.mkdtemp(dir=temp_dir) + deno_dir = mkdtemp() try: t = os.path.join(tests_path, "006_url_imports.ts") output = run_output([deno_exe, "--prefetch", t], |