Skip to content

Commit f80a21e

Browse files
committed
Remove import-mode
It's most likely no longer necessary
1 parent e8ea0ee commit f80a21e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/build-pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build pre release python versions
33
on: [push, pull_request]
44

55
env:
6-
CIBW_TEST_COMMAND_LINUX: "pytest --import-mode append {project}/tests/unit"
6+
CIBW_TEST_COMMAND_LINUX: "pytest {project}/tests/unit"
77
CIBW_BEFORE_TEST: "pip install -r {project}/test-requirements.txt"
88
CIBW_BEFORE_BUILD_LINUX: "rm -rf ~/.pyxbld && rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && yum install -y libffi-devel libev libev-devel openssl openssl-devel"
99
CIBW_ENVIRONMENT: "CASS_DRIVER_BUILD_CONCURRENCY=2 CFLAGS='-g0 -O3'"

.github/workflows/build-push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on: [push, pull_request]
44

55

66
env:
7-
CIBW_TEST_COMMAND_LINUX: "pytest --import-mode append {project}/tests/unit && EVENT_LOOP_MANAGER=gevent pytest --import-mode append {project}/tests/unit/io/test_geventreactor.py"
8-
CIBW_TEST_COMMAND_MACOS: "pytest --import-mode append {project}/tests/unit -k 'not (test_multi_timer_validation or test_empty_connections or test_timer_cancellation)' "
9-
CIBW_TEST_COMMAND_WINDOWS: "pytest --import-mode append {project}/tests/unit -k \"not (test_deserialize_date_range_year or test_datetype or test_libevreactor)\" "
7+
CIBW_TEST_COMMAND_LINUX: "pytest {project}/tests/unit && EVENT_LOOP_MANAGER=gevent pytest {project}/tests/unit/io/test_geventreactor.py"
8+
CIBW_TEST_COMMAND_MACOS: "pytest {project}/tests/unit -k 'not (test_multi_timer_validation or test_empty_connections or test_timer_cancellation)' "
9+
CIBW_TEST_COMMAND_WINDOWS: "pytest {project}/tests/unit -k \"not (test_deserialize_date_range_year or test_datetype or test_libevreactor)\" "
1010
CIBW_BEFORE_TEST: "pip install -r {project}/test-requirements.txt"
1111
CIBW_BEFORE_BUILD_LINUX: "rm -rf ~/.pyxbld && rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && yum install -y libffi-devel libev libev-devel openssl openssl-devel"
1212
CIBW_ENVIRONMENT: "CASS_DRIVER_BUILD_CONCURRENCY=2 CFLAGS='-g0 -O3'"

README-dev.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ Running Unit Tests
3131
------------------
3232
Unit tests can be run like so::
3333

34-
python -m pytest --import-mode append tests/unit
35-
EVENT_LOOP_MANAGER=gevent python -m pytest --import-mode append tests/unit/io/test_geventreactor.py
36-
EVENT_LOOP_MANAGER=eventlet python -m pytest --import-mode append tests/unit/io/test_eventletreactor.py
34+
python -m pytest tests/unit
35+
EVENT_LOOP_MANAGER=gevent python -m pytest tests/unit/io/test_geventreactor.py
36+
EVENT_LOOP_MANAGER=eventlet python -m pytest tests/unit/io/test_eventletreactor.py
3737

3838
You can run a specific test method like so::
3939

scripts/run_integration_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ ccm remove
3636

3737
# run test
3838

39-
PROTOCOL_VERSION=4 pytest -rf --import-mode append $*
39+
PROTOCOL_VERSION=4 pytest -rf $*
4040

0 commit comments

Comments
 (0)