Skip to content

Fails with pytest -n $(nproc --all) #47

Description

@keremsahn
def test09_templated_function(self):
        """Templated free function"""
    
        import cppjit
    
>       mul = cppjit.gbl.multiply
              ^^^^^^^^^^^^^^^^^^^
E       AttributeError: <namespace cppjit.gbl at 0x2647e8b0> has no attribute 'multiply'. Full details:
E         type object '' has no attribute 'multiply'
E         'multiply' is not a known C++ class
E         'multiply' is not a known C++ template
E         'multiply' is not a known C++ enum

test/test_doc_features.py:717: AttributeError

Reason: multiply is defined at class TestDOCFEATURES, but test09 is at class TestTUTORIALFEATURES

  1. Same for test_lowlevel.py::TestLOWLEVEL::test03_memory : AttributeError: module 'cppjit' has no attribute 'll'
    The ll is not directly included at test03, and when test03 runs before one of the tests that import ll finishes, test fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions