28 lines
845 B
Diff
28 lines
845 B
Diff
- using pytest is broken, see #31924
|
|
|
|
--- a/src/bin/sage-runtests
|
|
+++ b/src/bin/sage-runtests
|
|
@@ -154,21 +154,4 @@ if __name__ == "__main__":
|
|
DC = DocTestController(args, args.filenames)
|
|
err = DC.run()
|
|
|
|
- try:
|
|
- exit_code_pytest = 0
|
|
- import pytest
|
|
- pytest_options = ["--import-mode", "importlib"]
|
|
- if args.verbose:
|
|
- pytest_options.append("-v")
|
|
- exit_code_pytest = pytest.main(pytest_options + args.filenames)
|
|
- if exit_code_pytest == 5:
|
|
- # Exit code 5 means there were no test files, pass in this case
|
|
- exit_code_pytest = 0
|
|
-
|
|
- except ModuleNotFoundError:
|
|
- print("Pytest is not installed, skip checking tests that rely on it.")
|
|
-
|
|
- if err == 0:
|
|
- sys.exit(exit_code_pytest)
|
|
- else:
|
|
- sys.exit(err)
|
|
+ sys.exit(err)
|