Fix main_platform_test.py::test_platform_argument, making sure --platform overrides CIBW_PLATFORM
This commit is contained in:
@@ -46,6 +46,7 @@ def test_unknown_platform(monkeypatch, capsys):
|
|||||||
|
|
||||||
|
|
||||||
def test_platform_argument(platform, intercepted_build_args, monkeypatch):
|
def test_platform_argument(platform, intercepted_build_args, monkeypatch):
|
||||||
|
monkeypatch.setenv('CIBW_PLATFORM', 'nonexistent')
|
||||||
monkeypatch.setattr(sys, 'argv', sys.argv + ['--platform', platform])
|
monkeypatch.setattr(sys, 'argv', sys.argv + ['--platform', platform])
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user