Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-08-17 21:07:45 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-08-17 21:08:01 +0300
commitac41215f074f37859a44adeef04711c24572ebc1 (patch)
treeb25a5457c809156cade63c10928568b12fc3703c /tests
parentc6a99e021ac97983af97fe8f9b740b4a7cb16568 (diff)
Tests: fix Alembic export test on Windows
Convert all `subprocess.run()` arguments to string, to prevent breaking "does this argument need quoting" checks on Windows.
Diffstat (limited to 'tests')
-rw-r--r--tests/python/alembic_export_tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/python/alembic_export_tests.py b/tests/python/alembic_export_tests.py
index cacd2f2dd0e..b5d6bf65f3f 100644
--- a/tests/python/alembic_export_tests.py
+++ b/tests/python/alembic_export_tests.py
@@ -67,7 +67,9 @@ class AbstractAlembicTest(AbstractBlenderRunnerTest):
"""
command = (self.alembic_root / 'bin' / 'abcls', *arguments)
- proc = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
+ # Convert Path to str; Path works fine on Linux, but not on Windows.
+ command_str = [str(arg) for arg in command]
+ proc = subprocess.run(command_str, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
timeout=30)
coloured_output = proc.stdout