diff options
author | Eli Bendersky <eliben@gmail.com> | 2021-10-29 10:03:20 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2021-10-29 10:03:20 -0700 |
commit | 268067bb6dcdb816010ae2dbc2c5edc9e260c59d (patch) | |
tree | 1b171984473c0e215726229b0bc4ff78f31dfb59 /examples | |
parent | 43997f164eaf871f1d8b996b94a0b6bf1ae17997 (diff) | |
download | pycparser-268067bb6dcdb816010ae2dbc2c5edc9e260c59d.tar.gz |
Only run example tests on Linux, since many require cpp
Diffstat (limited to 'examples')
-rw-r--r-- | examples/func_calls.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/func_calls.py b/examples/func_calls.py index ce70232..d72bd8f 100644 --- a/examples/func_calls.py +++ b/examples/func_calls.py @@ -17,7 +17,6 @@ sys.path.extend(['.', '..']) from pycparser import c_ast, parse_file - # A visitor with some state information (the funcname it's looking for) class FuncCallVisitor(c_ast.NodeVisitor): def __init__(self, funcname): @@ -31,10 +30,6 @@ class FuncCallVisitor(c_ast.NodeVisitor): self.visit(node.args) -def cpp_supported(): - return platform.system() == 'Linux' - - def show_func_calls(filename, funcname): ast = parse_file(filename, use_cpp=True) v = FuncCallVisitor(funcname) |