Skip to content

Commit 7992364

Browse files
author
Vasileios Karakasis
committed
Fix Python version check in copytree()
1 parent 5b4cc6b commit 7992364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reframe/utility/os_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def copytree(src, dst, symlinks=False, ignore=None, copy_function=shutil.copy2,
102102
raise ValueError("cannot copy recursively the parent directory "
103103
"`%s' into one of its descendants `%s'" % (src, dst))
104104

105-
if sys.version_info[2] >= 8:
105+
if sys.version_info[1] >= 8:
106106
return shutil.copytree(src, dst, symlinks, ignore, copy_function,
107107
ignore_dangling_symlinks, dirs_exist_ok)
108108

0 commit comments

Comments
 (0)