pybind11/tests/test_cmake_build/test.py

9 lines
198 B
Python
Raw Normal View History

import sys
import test_cmake_build
assert isinstance(__file__, str) # Test this is properly set
assert test_cmake_build.add(1, 2) == 3
print(f"{sys.argv[1]} imports, runs, and adds: 1 + 2 = 3")