diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2017-07-01 21:54:48 +0100 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2017-07-02 10:04:36 +0100 |
commit | 5f439ab89a6b499ffeec9f0d02daff18a3b8e50f (patch) | |
tree | 2ae99e5728b3c5e8d2a1b3f3d8685aafb5802d50 /tests/fruit_test_common.py | |
parent | f2bec689904d29896b9ebae1ecf76d486a490c4b (diff) | |
download | google-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.py | 4 |
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( |