(self)
| 532 | """ |
| 533 | |
| 534 | def run(self): |
| 535 | # This should either be removed or migrated to use nox |
| 536 | import subprocess |
| 537 | |
| 538 | self.run_command("build") |
| 539 | build_cmd = self.get_finalized_command("build_ext") |
| 540 | runner = os.path.abspath("tests/runtests.py") |
| 541 | test_cmd = [sys.executable, runner] |
| 542 | if self.runtests_opts: |
| 543 | test_cmd.extend(self.runtests_opts.split()) |
| 544 | |
| 545 | print("running test") |
| 546 | ret = subprocess.run( |
| 547 | test_cmd, |
| 548 | stdout=sys.stdout, |
| 549 | stderr=sys.stderr, |
| 550 | cwd=build_cmd.build_lib, |
| 551 | check=False, |
| 552 | ) |
| 553 | sys.exit(ret.returncode) |
| 554 | |
| 555 | |
| 556 | class Clean(clean): |
nothing calls this directly
no test coverage detected