Skip to content

Commit 31de15b

Browse files
authored
chore: remove nosetests from tests and docs (#1898)
fix #499
1 parent 3179fd2 commit 31de15b

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

docs/options.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,9 +1383,6 @@ Platform-specific environment variables are also available:<br/>
13831383
!!! tab examples "Environment variables"
13841384

13851385
```yaml
1386-
# Run the project tests against the installed wheel using `nose`
1387-
CIBW_TEST_COMMAND: nosetests {project}/tests
1388-
13891386
# Run the package tests using `pytest`
13901387
CIBW_TEST_COMMAND: pytest {package}/tests
13911388

@@ -1402,9 +1399,6 @@ Platform-specific environment variables are also available:<br/>
14021399

14031400
```toml
14041401
[tool.cibuildwheel]
1405-
# Run the project tests against the installed wheel using `nose`
1406-
test-command = "nosetests {project}/tests"
1407-
14081402
# Run the package tests using `pytest`
14091403
test-command = "pytest {package}/tests"
14101404

@@ -1510,7 +1504,7 @@ Platform-specific environment variables are also available:<br/>
15101504
CIBW_TEST_REQUIRES: pytest
15111505

15121506
# Install specific versions of test dependencies
1513-
CIBW_TEST_REQUIRES: nose==1.3.7 moto==0.4.31
1507+
CIBW_TEST_REQUIRES: pytest==8.2.2 packaging==24.1
15141508
```
15151509

15161510
!!! tab examples "pyproject.toml"
@@ -1522,7 +1516,7 @@ Platform-specific environment variables are also available:<br/>
15221516

15231517
# Install specific versions of test dependencies
15241518
[tool.cibuildwheel]
1525-
test-requires = ["nose==1.3.7", "moto==0.4.31"]
1519+
test-requires = ["pytest==8.2.2", "packaging==24.1"]
15261520
```
15271521

15281522
In configuration files, you can use an array, and the items will be joined with a space.

test/test_testing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ def test_failing_test(tmp_path):
135135
project_dir,
136136
output_dir=output_dir,
137137
add_env={
138-
"CIBW_TEST_REQUIRES": "nose",
139-
"CIBW_TEST_COMMAND": "nosetests {project}/test",
138+
"CIBW_TEST_REQUIRES": "pytest",
139+
"CIBW_TEST_COMMAND": f"{utils.invoke_pytest()} {{project}}/test",
140140
# manylinux1 has a version of bash that's been shown to have
141141
# problems with this, so let's check that.
142142
"CIBW_MANYLINUX_I686_IMAGE": "manylinux1",

0 commit comments

Comments
 (0)