From 4e47a0b513eff75cea9b884289f9fcdfb6a5b086 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Fri, 5 Apr 2019 10:39:08 +0200 Subject: [PATCH] Skip the prohibit-char test on Windows due to lack of cc --- test/helpers.py | 1 - test/test_char.py | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/test/helpers.py b/test/helpers.py index 238e234c..e6c3adc1 100644 --- a/test/helpers.py +++ b/test/helpers.py @@ -86,7 +86,6 @@ def ensure_available(executable): """ path = shutil.which(executable) if path: - print("Found", path) return path # Installing clang-tidy on LLVM will be too much of a mess. diff --git a/test/test_char.py b/test/test_char.py index 29a0b857..8f823241 100644 --- a/test/test_char.py +++ b/test/test_char.py @@ -7,8 +7,7 @@ This is ambiguous; compilers can freely choose `signed` or `unsigned` char. import pqclean import pycparser import os -import unittest -import shutil +import helpers def test_char(): @@ -26,9 +25,8 @@ def walk_tree(ast): yield from walk_tree(child) # recursively yield prohibited nodes +@helpers.skip_windows() def check_char(implementation): - if not shutil.which('cpp'): - raise unittest.SkipTest("C pre-processor (cpp) was not found.") errors = [] for fname in os.listdir(implementation.path()): if not fname.endswith(".c"):