summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/functional_tests/stl_basic_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/regression/functional_tests/stl_basic_tests.py')
-rw-r--r--scripts/automation/regression/functional_tests/stl_basic_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/automation/regression/functional_tests/stl_basic_tests.py b/scripts/automation/regression/functional_tests/stl_basic_tests.py
index 6467c128..2bf97307 100644
--- a/scripts/automation/regression/functional_tests/stl_basic_tests.py
+++ b/scripts/automation/regression/functional_tests/stl_basic_tests.py
@@ -133,14 +133,16 @@ class CStlBasic_Test(functional_general_test.CGeneralFunctional_Test):
if compare:
self.compare_caps(output_cap, golden_file)
-
+
except Exception as e:
print(e)
finally:
if not do_no_remove_generated:
os.unlink(generated_filename)
- os.unlink(generated_filename + 'c')
+ # python 3 does not generate PYC under the same dir
+ if os.path.exists(generated_filename + 'c'):
+ os.unlink(generated_filename + 'c')
if not do_no_remove:
os.unlink(output_cap)