Skip to content
Snippets Groups Projects
Unverified Commit 3d7a37d3 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #86 from nim65s/devel

Fix for Python 3.10
parents 1d3ee6f1 096eb6cc
No related branches found
No related tags found
No related merge requests found
Pipeline #17953 failed
Subproject commit a689714c0d0890ffff5649ba25cbaed44dd6e660 Subproject commit 332976cc4d5305256c79a479e55ad7ab2ecc42f1
...@@ -30,7 +30,9 @@ class CommandPath(object): ...@@ -30,7 +30,9 @@ class CommandPath(object):
def createCommandModule(target, name): def createCommandModule(target, name):
def createGetter(name): def createGetter(name):
def __(self): def __(self):
obj = getattr(self, name) obj = getattr(self, name)
obj.mother = self obj.mother = self
......
...@@ -107,7 +107,9 @@ sys.ps1 = '% ' ...@@ -107,7 +107,9 @@ sys.ps1 = '% '
# Enable function that can be call without()def optionalparentheses(f): # Enable function that can be call without()def optionalparentheses(f):
def optionalparentheses(f): def optionalparentheses(f):
class decoclass: class decoclass:
def __init__(self, f): def __init__(self, f):
self.functor = f self.functor = f
......
...@@ -6,7 +6,8 @@ TARGET_LINK_LIBRARIES(interpreter-test PRIVATE ${PROJECT_NAME}) ...@@ -6,7 +6,8 @@ TARGET_LINK_LIBRARIES(interpreter-test PRIVATE ${PROJECT_NAME})
# Test runfile # Test runfile
ADD_UNIT_TEST(interpreter-test-runfile interpreter-test-runfile.cc) ADD_UNIT_TEST(interpreter-test-runfile interpreter-test-runfile.cc)
TARGET_LINK_LIBRARIES(interpreter-test-runfile PRIVATE ${PROJECT_NAME} Boost::unit_test_framework) TARGET_LINK_LIBRARIES(interpreter-test-runfile PRIVATE ${PROJECT_NAME})
TARGET_INCLUDE_DIRECTORIES(interpreter-test-runfile PRIVATE Boost::unit_test_framework)
TARGET_COMPILE_DEFINITIONS(interpreter-test-runfile PRIVATE PATH="${CMAKE_CURRENT_LIST_DIR}/") TARGET_COMPILE_DEFINITIONS(interpreter-test-runfile PRIVATE PATH="${CMAKE_CURRENT_LIST_DIR}/")
# Test the module generation # Test the module generation
......
...@@ -62,7 +62,9 @@ int main(int argc, char** argv) { ...@@ -62,7 +62,9 @@ int main(int argc, char** argv) {
res = testFile(PATH "test_python-syntax_error.py", res = testFile(PATH "test_python-syntax_error.py",
std::string(" File \"" PATH "test_python-syntax_error.py\", line 2\n" std::string(" File \"" PATH "test_python-syntax_error.py\", line 2\n"
" hello world\n" " hello world\n"
#if PY_MINOR_VERSION >= 8 #if PY_MINOR_VERSION >= 10
" ^^^^^\n"
#elif PY_MINOR_VERSION >= 8
" ^\n" " ^\n"
#else #else
" ^\n" " ^\n"
......
...@@ -10,6 +10,7 @@ did not match C++ signature: ...@@ -10,6 +10,7 @@ did not match C++ signature:
class BindingsTests(unittest.TestCase): class BindingsTests(unittest.TestCase):
def test_type_check(self): def test_type_check(self):
""" """
test the type checking in signal plugs test the type checking in signal plugs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment