From f25aa07284dbd010dbd8b93f428309119e5f5d32 Mon Sep 17 00:00:00 2001 From: gen740 Date: Tue, 26 Sep 2023 17:21:15 +0900 Subject: [PATCH] Fix mac-test --- .github/workflows/mac-test.yml | 2 +- tests/test_components.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mac-test.yml b/.github/workflows/mac-test.yml index ed11050..6eb932f 100644 --- a/.github/workflows/mac-test.yml +++ b/.github/workflows/mac-test.yml @@ -44,5 +44,5 @@ jobs: run: | pytest env: - CPPYGEN_COMPILE_FLAGS: -nostdinc -isystem/usr/local/opt/llvm/bin/../include/c++/v1 -isystem/usr/local/Cellar/llvm/16.0.5/lib/clang/16/include -isystem/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include + CPPYGEN_COMPILE_FLAGS: -nostdinc -isystem/usr/local/opt/llvm/bin/../include/c++/v1 -isystem/usr/local/opt/llvm/lib/clang/17/include -isystem/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include CPPYGEN_LIBCLANG_PATH: /usr/local/opt/llvm/lib/libclang.dylib diff --git a/tests/test_components.py b/tests/test_components.py index dfdd242..7b4741f 100644 --- a/tests/test_components.py +++ b/tests/test_components.py @@ -1,5 +1,6 @@ from cppygen.function import Function from cppygen.submodule import Submodule +from cppygen.cppclass import CppClass def test_function(): @@ -88,7 +89,7 @@ def test_submod_compare(): def test_struct_or_class(): - soc = StructOrClass() + soc = CppClass() soc.set_name("class1", ["mod1", "mod2"]) soc.set_description("this is class 1")