aboutsummaryrefslogtreecommitdiff
path: root/tests/fruit_test_common.py
diff options
context:
space:
mode:
authorMarco Poletti <poletti.marco@gmail.com>2017-07-01 21:54:48 +0100
committerMarco Poletti <poletti.marco@gmail.com>2017-07-02 10:04:36 +0100
commit5f439ab89a6b499ffeec9f0d02daff18a3b8e50f (patch)
tree2ae99e5728b3c5e8d2a1b3f3d8685aafb5802d50 /tests/fruit_test_common.py
parentf2bec689904d29896b9ebae1ecf76d486a490c4b (diff)
downloadgoogle-fruit-5f439ab89a6b499ffeec9f0d02daff18a3b8e50f.tar.gz
Fix a bug in the Fruit testing code that potentially caused some deprecation to be ignored in tests.
Diffstat (limited to 'tests/fruit_test_common.py')
-rw-r--r--tests/fruit_test_common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fruit_test_common.py b/tests/fruit_test_common.py
index d9de2dd..fbabbe2 100644
--- a/tests/fruit_test_common.py
+++ b/tests/fruit_test_common.py
@@ -469,7 +469,7 @@ def expect_runtime_error(
executable_suffix = {'posix': '', 'nt': '.exe'}[os.name]
output_file_name = _create_temporary_file('', executable_suffix)
- args = fruit_tests_linker_flags
+ args = fruit_tests_linker_flags.copy()
if ignore_deprecation_warnings:
args += compiler.get_disable_deprecation_warning_flags()
compiler.compile_and_link(
@@ -532,7 +532,7 @@ def expect_success(setup_source_code, source_code, test_params={}, ignore_deprec
executable_suffix = {'posix': '', 'nt': '.exe'}[os.name]
output_file_name = _create_temporary_file('', executable_suffix)
- args = fruit_tests_linker_flags
+ args = fruit_tests_linker_flags.copy()
if ignore_deprecation_warnings:
args += compiler.get_disable_deprecation_warning_flags()
compiler.compile_and_link(