|
2 | 2 | from inspect import cleandoc as heredoc
|
3 | 3 | from glob import glob
|
4 | 4 | from pathlib import Path
|
5 |
| -from unittest.mock import patch |
6 | 5 |
|
7 | 6 | import nox
|
8 | 7 | import nox.command
|
@@ -156,45 +155,6 @@ def test(session: nox.Session):
|
156 | 155 | session.run("pytest", "setuptools_rust", "tests", *session.posargs)
|
157 | 156 |
|
158 | 157 |
|
159 |
| -@nox.session(name="test-mingw") |
160 |
| -def test_mingw(session: nox.Session): |
161 |
| - # manually re-implemented test-examples to workaround |
162 |
| - # https://github.com/wntrblm/nox/issues/630 |
163 |
| - |
164 |
| - oldrun = nox.command.run |
165 |
| - |
166 |
| - def newrun(*args, **kwargs): |
167 |
| - # suppress "external" error on install |
168 |
| - kwargs["external"] = True |
169 |
| - oldrun(*args, **kwargs) |
170 |
| - |
171 |
| - examples = Path(os.path.dirname(__file__)).absolute() / "examples" |
172 |
| - |
173 |
| - with patch.object(nox.command, "run", newrun): |
174 |
| - session.install(".") |
175 |
| - |
176 |
| - session.install("--no-build-isolation", str(examples / "hello-world")) |
177 |
| - session.run("print-hello") |
178 |
| - session.run("sum-cli", "5", "7") |
179 |
| - session.run("rust-demo", "5", "7") |
180 |
| - |
181 |
| - session.install("pytest", "pytest-benchmark", "beautifulsoup4") |
182 |
| - session.install("--no-build-isolation", str(examples / "html-py-ever")) |
183 |
| - session.run("pytest", str(examples / "html-py-ever")) |
184 |
| - |
185 |
| - session.install("--no-build-isolation", str(examples / "namespace_package")) |
186 |
| - session.run("pytest", str(examples / "namespace_package")) |
187 |
| - |
188 |
| - try: |
189 |
| - session.install("cffi", "--only-binary=cffi") |
190 |
| - except nox.command.CommandFailed: |
191 |
| - # no compatible cffi currently available on mingw |
192 |
| - pass |
193 |
| - else: |
194 |
| - session.install("--no-build-isolation", str(examples / "rust_with_cffi")) |
195 |
| - session.run("pytest", str(examples / "rust_with_cffi")) |
196 |
| - |
197 |
| - |
198 | 158 | @nox.session(name="test-examples-emscripten")
|
199 | 159 | def test_examples_emscripten(session: nox.Session):
|
200 | 160 | session.install(".", "build")
|
|
0 commit comments