summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/scanner/test_ccompiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/scanner/test_ccompiler.py b/tests/scanner/test_ccompiler.py
index dd8700d8..5890aa9b 100644
--- a/tests/scanner/test_ccompiler.py
+++ b/tests/scanner/test_ccompiler.py
@@ -85,7 +85,7 @@ class UnixCCompilerTest(unittest.TestCase):
# Don't actually do anything.
cc.compiler.dry_run = True
cc.compile(pkg_config_cflags, cpp_includes, [source], init_sections)
- spawn.assert_called_once()
+ self.assertEqual(1, spawn.call_count)
args, kwargs = spawn.call_args
return args[0]
@@ -106,7 +106,7 @@ class UnixCCompilerTest(unittest.TestCase):
# Don't actually do anything.
cc.compiler.dry_run = True
cc.preprocess(source, output, cpp_options)
- spawn.assert_called_once()
+ self.assertEqual(1, spawn.call_count)
args, kwargs = spawn.call_args
return args[0]