diff options
Diffstat (limited to 'testsuite/driver/testutil.py')
-rw-r--r-- | testsuite/driver/testutil.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuite/driver/testutil.py b/testsuite/driver/testutil.py index e33b6a16ab..62b76c75fd 100644 --- a/testsuite/driver/testutil.py +++ b/testsuite/driver/testutil.py @@ -1,5 +1,4 @@ import os -import platform import subprocess import shutil from pathlib import Path, PurePath @@ -83,7 +82,7 @@ def testing_metrics(): # # We define the following function to make this magic more # explicit/discoverable. You are encouraged to use it instead of os.symlink. -if platform.system() == 'Windows' and os.getenv('FORCE_SYMLINKS') == None: +if os.name == 'nt' and os.getenv('FORCE_SYMLINKS') == None: def link_or_copy_file(src: Path, dst: Path): shutil.copyfile(str(src), str(dst)) else: |