Skip to content

Commit

Permalink
Avoid circular ImportError by moving to tests
Browse files Browse the repository at this point in the history
Python tries to `import pynvjitlink` from the module adjacent to the
tests leading to circular `ImportError`s. However `pynvjitlink` is
already installed. So just change to the `tests` directory so the
`pynvjitlink` directory is no longer adjacent.
  • Loading branch information
jakirkham committed Feb 15, 2024
1 parent 450c355 commit 2c8531e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ci/test_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ trap "EXITCODE=1" ERR
set +e

rapids-logger "Run Tests"
pushd pynvjitlink/tests
python -m pytest \
--cache-clear \
--junitxml="${RAPIDS_TESTS_DIR}/junit-pynvjitlink.xml" \
-v \
pynvjitlink/tests
-v
popd

rapids-logger "Test script exiting with value: $EXITCODE"
exit ${EXITCODE}
5 changes: 3 additions & 2 deletions ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ make
popd

rapids-logger "Run Tests"
pushd pynvjitlink/tests
python -m pytest \
--cache-clear \
--junitxml="${RAPIDS_TESTS_DIR}/junit-pynvjitlink.xml" \
-v \
pynvjitlink/tests
-v
popd

0 comments on commit 2c8531e

Please sign in to comment.