Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest configuration broken with pytest 8.x; failures in Build & Test CI #37536

Closed
mkoeppe opened this issue Mar 4, 2024 · 1 comment · Fixed by #37999
Closed

pytest configuration broken with pytest 8.x; failures in Build & Test CI #37536

mkoeppe opened this issue Mar 4, 2024 · 1 comment · Fixed by #37999

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Mar 4, 2024

https://github.com/sagemath/sage/actions/runs/8126496765/job/22210315057?pr=37401#step:14:25

Run # We run tests with "sage -t --new"; this only tests the uncommitted changes.
no stored timings available
Running doctests with ID 2024-03-03-00-51-03-d46e69e[8](https://github.com/sagemath/sage/actions/runs/8126496765/job/22210315057?pr=37401#step:14:9).
Running with SAGE_LOCAL='/sage/local' and SAGE_VENV='/sage/local/var/lib/sage/venv-python3.11.1'
Using --optional=bliss,coxeter3,debian,mcqd,meataxe,pip,sage,sage_spkg,sirocco,tdlib
Features to be detected: 4ti2,benzene,bliss,buckygen,conway_polynomials,csdp,cvxopt,cvxopt,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_cubic_hecke,database_ellcurves,database_graphs,database_jones_numfield,database_knotinfo,dvipng,fpylll,fricas,gap_package_atlasrep,gap_package_design,gap_package_grape,gap_package_guava,gap_package_hap,gap_package_polycyclic,gap_package_qpa,gap_package_quagroup,gfan,graphviz,imagemagick,ipython,jmol,jupymake,kenzo,latte_int,lrcalc_python,lrslib,matroid_database,mcqd,meataxe,mpmath,msolve,nauty,networkx,numpy,palp,pandoc,pdf2svg,pdftocairo,pexpect,phitigra,pillow,plantri,polytopes_db,polytopes_db_4d,pplpy,primecountpy,ptyprocess,pynormaliz,pyparsing,python_igraph,requests,rubiks,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.libs.braiding,sage.libs.ecl,sage.libs.flint,sage.libs.gap,sage.libs.linbox,sage.libs.m4ri,sage.libs.ntl,sage.libs.pari,sage.libs.singular,sage.misc.cython,sage.modular,sage.modules,sage.numerical.mip,sage.plot,sage.rings.complex_double,sage.rings.finite_rings,sage.rings.function_field,sage.rings.number_field,sage.rings.padics,sage.rings.polynomial.pbori,sage.rings.real_double,sage.rings.real_mpfr,sage.sat,sage.schemes,sage.symbolic,sage_numerical_backends_coin,sagemath_doc_html,scipy,singular,sphinx,symengine_py,sympy,tdlib,threejs
Doctesting files changed since last git commit
No files to doctest
Features detected for doctesting: 
Running pytest on ['/sage/src'] with options []
============================= test session starts ==============================
platform linux -- Python 3.11.1, pytest-8.0.2, pluggy-1.3.0
rootdir: /sage/src
configfile: tox.ini
plugins: hypothesis-6.[9](https://github.com/sagemath/sage/actions/runs/8126496765/job/22210315057?pr=37401#step:14:10)8.15, mock-3.12.0, anyio-4.0.0
collected 63 items / 2 skipped

src/conftest_test.py .F                                                  [  3%]
src/sage/doctest/parsing_test.py ...........                             [ 20%]
src/sage/manifolds/differentiable/examples/symplectic_space_test.py .... [ 26%]
                                                                         [ 26%]
src/sage/manifolds/differentiable/symplectic_form_test.py .............. [ 49%]
.....................                                                    [ 82%]
src/sage/manifolds/differentiable/tensorfield_paral_test.py .            [ 84%]
src/sage/numerical/backends/cvxopt_backend_test.py ..                    [ 87%]
src/sage/numerical/backends/glpk_backend_test.py ..                      [ 90%]
src/sage/numerical/backends/glpk_exact_backend_test.py ..                [ 93%]
src/sage/numerical/backends/interactivelp_backend_test.py ..             [ 96%]
src/sage/numerical/backends/ppl_backend_test.py ..                       [[10](https://github.com/sagemath/sage/actions/runs/8126496765/job/22210315057?pr=37401#step:14:11)0%]

=================================== FAILURES ===================================
______________ TestPytestSageScript.test_invoke_on_inputtest_file ______________

self = <conftest_test.TestPytestSageScript object at 0x7fdb71d51f90>

    def test_invoke_on_inputtest_file(self):
        result = subprocess.run(
            ["sage", "--pytest", input_file],
            capture_output=True,
            text=True,
        )
>       assert result.returncode == 1  # There are failures in the input test
E       AssertionError: assert 2 == 1
E        +  where 2 = CompletedProcess(args=['sage', '--pytest', PosixPath('/sage/src/conftest_inputtest.py')], returncode=2, stdout='======...n !!!!!!!!!!!!!!!!!!!!\n=============================== 1 error in 0.[22](https://github.com/sagemath/sage/actions/runs/8126496765/job/22210315057?pr=37401#step:14:23)s ===============================\n', stderr='').returncode

src/conftest_test.py:[40](https://github.com/sagemath/sage/actions/runs/8126496765/job/22210315057?pr=37401#step:14:41): AssertionError
=========================== short test summary info ============================
FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputtest_file - AssertionError: assert 2 == 1
 +  where 2 = CompletedProcess(args=['sage', '--pytest', PosixPath('/sage/src/conftest_inputtest.py')], returncode=2, stdout='======...n !!!!!!!!!!!!!!!!!!!!\n=============================== 1 error in 0.22s ===============================\n', stderr='').returncode
============= 1 failed, 62 passed, 2 skipped in 102.79s (0:01:[42](https://github.com/sagemath/sage/actions/runs/8126496765/job/22210315057?pr=37401#step:14:43)) ==============
Error: Process completed with exit code 1.

On closer look, our pytest integration is completely broken.

./sage -pytest                                                                                                                                                     git:sage_geometry_modularization
======================================================================================================== test session starts ========================================================================================================
platform darwin -- Python 3.12.3, pytest-8.2.1, pluggy-1.5.0
rootdir: /Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/src
configfile: tox.ini
plugins: anyio-4.0.0
collected 63 items / 2465 errors / 2 skipped                                                                                                                                                                                        

============================================================================================================== ERRORS ===============================================================================================================
___________________________________________________________________________________________________ ERROR collecting conftest.py ____________________________________________________________________________________________________
src/conftest.py:81: in collect
    module = self.config.pluginmanager._importconftest(
E   TypeError: PytestPluginManager._importconftest() missing 1 required keyword-only argument: 'consider_namespace_packages'
______________________________________________________________________________________________ ERROR collecting conftest_inputtest.py _______________________________________________________________________________________________
src/conftest.py:88: in collect
    module = import_path(
E   TypeError: import_path() missing 1 required keyword-only argument: 'consider_namespace_packages'
_________________________________________________________________________________________________ ERROR collecting conftest_test.py _________________________________________________________________________________________________
@mkoeppe
Copy link
Member Author

mkoeppe commented Mar 24, 2024

@mkoeppe mkoeppe added this to the sage-10.4 milestone May 3, 2024
@mkoeppe mkoeppe changed the title pytest failures in Build & Test CI pytest configuration broken with pytest 8.x; failures in Build & Test CI May 24, 2024
vbraun pushed a commit to vbraun/sage that referenced this issue May 26, 2024
… in `src/conftest_test.py`)

    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Frequently seen in the CI, for example https://github.com/sagemath/sage/
actions/runs/9055116851/job/24875749181?pr=37862#step:12:27
```
Doctesting files changed since last git commit
No files to doctest
Features detected for doctesting:
Running pytest on ['/sage/src'] with options []
============================= test session starts
==============================
platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0
rootdir: /sage/src
configfile: tox.ini
plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7
collected 63 items / 2 skipped

src/conftest_test.py .F
[  3%]
src/sage/doctest/parsing_test.py ...........
[ 20%]
src/sage/manifolds/differentiable/examples/symplectic_space_test.py ....
[ [26](https://github.com/sagemath/sage/actions/runs/9055116851/job/2487
5749181?pr=37862#step:12:27)%]
 [ 26%]
src/sage/manifolds/differentiable/symplectic_form_test.py ..............
[ 49%]
.....................
[ 82%]
src/sage/manifolds/differentiable/tensorfield_paral_test.py .
[ 84%]
src/sage/numerical/backends/cvxopt_backend_test.py ..
[ 87%]
src/sage/numerical/backends/glpk_backend_test.py ..
[ 90%]
src/sage/numerical/backends/glpk_exact_backend_test.py ..
[ 93%]
src/sage/numerical/backends/interactivelp_backend_test.py ..
[ 96%]
src/sage/numerical/backends/ppl_backend_test.py ..
[100%]

=================================== FAILURES
===================================
______________ TestPytestSageScript.test_invoke_on_inputtest_file
______________

self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0>

    def test_invoke_on_inputtest_file(self):
        result = subprocess.run(
            ["sage", "--pytest", input_file],
            capture_output=True,
            text=True,
        )
>       assert result.returncode == 1  # There are failures in the input
test
E       assert 2 == 1
E        +  where 2 = CompletedProcess(args=['sage', '--pytest',
PosixPath('/sage/src/conftest_inputtest.py')], returncode=2,
stdout="======...n !!!!!!!!!!!!!!!!!!!!\n===============================
1 error in 0.18s ===============================\n",
stderr='').returncode

src/conftest_test.py:40: AssertionError
=========================== short test summary info
============================
FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt
est_file
============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https
://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3
7862#step:12:38)) ==============Running pytest on ['/sage/src'] with
options []
============================= test session starts
==============================
platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0
rootdir: /sage/src
configfile: tox.ini
plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7
collected 63 items / 2 skipped

src/conftest_test.py .F
[  3%]
src/sage/doctest/parsing_test.py ...........
[ 20%]
src/sage/manifolds/differentiable/examples/symplectic_space_test.py ....
[ 26%]
 [ 26%]
src/sage/manifolds/differentiable/symplectic_form_test.py ..............
[ 49%]
.....................
[ 82%]
src/sage/manifolds/differentiable/tensorfield_paral_test.py .
[ 84%]
src/sage/numerical/backends/cvxopt_backend_test.py ..
[ 87%]
src/sage/numerical/backends/glpk_backend_test.py ..
[ 90%]
src/sage/numerical/backends/glpk_exact_backend_test.py ..
[ 93%]
src/sage/numerical/backends/interactivelp_backend_test.py ..
[ 96%]
src/sage/numerical/backends/ppl_backend_test.py ..
[100%]

=================================== FAILURES
===================================
______________ TestPytestSageScript.test_invoke_on_inputtest_file
______________

self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0>

    def test_invoke_on_inputtest_file(self):
        result = subprocess.run(
            ["sage", "--pytest", input_file],
            capture_output=True,
            text=True,
        )
>       assert result.returncode == 1  # There are failures in the input
test
E       assert 2 == 1
E        +  where 2 = CompletedProcess(args=['sage', '--pytest',
PosixPath('/sage/src/conftest_inputtest.py')], returncode=2,
stdout="======...n !!!!!!!!!!!!!!!!!!!!\n===============================
1 error in 0.18s ===============================\n",
stderr='').returncode

src/conftest_test.py:40: AssertionError
=========================== short test summary info
============================
FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt
est_file
============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https
://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3
7862#step:12:38)) ==============
```

- Fixes sagemath#37536.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#37999
Reported by: Matthias Köppe
Reviewer(s): Nathan Dunfield
vbraun pushed a commit to vbraun/sage that referenced this issue May 29, 2024
… in `src/conftest_test.py`)

    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Frequently seen in the CI, for example https://github.com/sagemath/sage/
actions/runs/9055116851/job/24875749181?pr=37862#step:12:27
```
Doctesting files changed since last git commit
No files to doctest
Features detected for doctesting:
Running pytest on ['/sage/src'] with options []
============================= test session starts
==============================
platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0
rootdir: /sage/src
configfile: tox.ini
plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7
collected 63 items / 2 skipped

src/conftest_test.py .F
[  3%]
src/sage/doctest/parsing_test.py ...........
[ 20%]
src/sage/manifolds/differentiable/examples/symplectic_space_test.py ....
[ [26](https://github.com/sagemath/sage/actions/runs/9055116851/job/2487
5749181?pr=37862#step:12:27)%]
 [ 26%]
src/sage/manifolds/differentiable/symplectic_form_test.py ..............
[ 49%]
.....................
[ 82%]
src/sage/manifolds/differentiable/tensorfield_paral_test.py .
[ 84%]
src/sage/numerical/backends/cvxopt_backend_test.py ..
[ 87%]
src/sage/numerical/backends/glpk_backend_test.py ..
[ 90%]
src/sage/numerical/backends/glpk_exact_backend_test.py ..
[ 93%]
src/sage/numerical/backends/interactivelp_backend_test.py ..
[ 96%]
src/sage/numerical/backends/ppl_backend_test.py ..
[100%]

=================================== FAILURES
===================================
______________ TestPytestSageScript.test_invoke_on_inputtest_file
______________

self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0>

    def test_invoke_on_inputtest_file(self):
        result = subprocess.run(
            ["sage", "--pytest", input_file],
            capture_output=True,
            text=True,
        )
>       assert result.returncode == 1  # There are failures in the input
test
E       assert 2 == 1
E        +  where 2 = CompletedProcess(args=['sage', '--pytest',
PosixPath('/sage/src/conftest_inputtest.py')], returncode=2,
stdout="======...n !!!!!!!!!!!!!!!!!!!!\n===============================
1 error in 0.18s ===============================\n",
stderr='').returncode

src/conftest_test.py:40: AssertionError
=========================== short test summary info
============================
FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt
est_file
============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https
://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3
7862#step:12:38)) ==============Running pytest on ['/sage/src'] with
options []
============================= test session starts
==============================
platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0
rootdir: /sage/src
configfile: tox.ini
plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7
collected 63 items / 2 skipped

src/conftest_test.py .F
[  3%]
src/sage/doctest/parsing_test.py ...........
[ 20%]
src/sage/manifolds/differentiable/examples/symplectic_space_test.py ....
[ 26%]
 [ 26%]
src/sage/manifolds/differentiable/symplectic_form_test.py ..............
[ 49%]
.....................
[ 82%]
src/sage/manifolds/differentiable/tensorfield_paral_test.py .
[ 84%]
src/sage/numerical/backends/cvxopt_backend_test.py ..
[ 87%]
src/sage/numerical/backends/glpk_backend_test.py ..
[ 90%]
src/sage/numerical/backends/glpk_exact_backend_test.py ..
[ 93%]
src/sage/numerical/backends/interactivelp_backend_test.py ..
[ 96%]
src/sage/numerical/backends/ppl_backend_test.py ..
[100%]

=================================== FAILURES
===================================
______________ TestPytestSageScript.test_invoke_on_inputtest_file
______________

self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0>

    def test_invoke_on_inputtest_file(self):
        result = subprocess.run(
            ["sage", "--pytest", input_file],
            capture_output=True,
            text=True,
        )
>       assert result.returncode == 1  # There are failures in the input
test
E       assert 2 == 1
E        +  where 2 = CompletedProcess(args=['sage', '--pytest',
PosixPath('/sage/src/conftest_inputtest.py')], returncode=2,
stdout="======...n !!!!!!!!!!!!!!!!!!!!\n===============================
1 error in 0.18s ===============================\n",
stderr='').returncode

src/conftest_test.py:40: AssertionError
=========================== short test summary info
============================
FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt
est_file
============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https
://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3
7862#step:12:38)) ==============
```

- Fixes sagemath#37536.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#37999
Reported by: Matthias Köppe
Reviewer(s): Nathan Dunfield
vbraun pushed a commit to vbraun/sage that referenced this issue May 31, 2024
… in `src/conftest_test.py`)

    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Frequently seen in the CI, for example https://github.com/sagemath/sage/
actions/runs/9055116851/job/24875749181?pr=37862#step:12:27
```
Doctesting files changed since last git commit
No files to doctest
Features detected for doctesting:
Running pytest on ['/sage/src'] with options []
============================= test session starts
==============================
platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0
rootdir: /sage/src
configfile: tox.ini
plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7
collected 63 items / 2 skipped

src/conftest_test.py .F
[  3%]
src/sage/doctest/parsing_test.py ...........
[ 20%]
src/sage/manifolds/differentiable/examples/symplectic_space_test.py ....
[ [26](https://github.com/sagemath/sage/actions/runs/9055116851/job/2487
5749181?pr=37862#step:12:27)%]
 [ 26%]
src/sage/manifolds/differentiable/symplectic_form_test.py ..............
[ 49%]
.....................
[ 82%]
src/sage/manifolds/differentiable/tensorfield_paral_test.py .
[ 84%]
src/sage/numerical/backends/cvxopt_backend_test.py ..
[ 87%]
src/sage/numerical/backends/glpk_backend_test.py ..
[ 90%]
src/sage/numerical/backends/glpk_exact_backend_test.py ..
[ 93%]
src/sage/numerical/backends/interactivelp_backend_test.py ..
[ 96%]
src/sage/numerical/backends/ppl_backend_test.py ..
[100%]

=================================== FAILURES
===================================
______________ TestPytestSageScript.test_invoke_on_inputtest_file
______________

self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0>

    def test_invoke_on_inputtest_file(self):
        result = subprocess.run(
            ["sage", "--pytest", input_file],
            capture_output=True,
            text=True,
        )
>       assert result.returncode == 1  # There are failures in the input
test
E       assert 2 == 1
E        +  where 2 = CompletedProcess(args=['sage', '--pytest',
PosixPath('/sage/src/conftest_inputtest.py')], returncode=2,
stdout="======...n !!!!!!!!!!!!!!!!!!!!\n===============================
1 error in 0.18s ===============================\n",
stderr='').returncode

src/conftest_test.py:40: AssertionError
=========================== short test summary info
============================
FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt
est_file
============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https
://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3
7862#step:12:38)) ==============Running pytest on ['/sage/src'] with
options []
============================= test session starts
==============================
platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0
rootdir: /sage/src
configfile: tox.ini
plugins: xdist-3.6.1, mock-3.14.0, anyio-4.0.0, hypothesis-6.100.7
collected 63 items / 2 skipped

src/conftest_test.py .F
[  3%]
src/sage/doctest/parsing_test.py ...........
[ 20%]
src/sage/manifolds/differentiable/examples/symplectic_space_test.py ....
[ 26%]
 [ 26%]
src/sage/manifolds/differentiable/symplectic_form_test.py ..............
[ 49%]
.....................
[ 82%]
src/sage/manifolds/differentiable/tensorfield_paral_test.py .
[ 84%]
src/sage/numerical/backends/cvxopt_backend_test.py ..
[ 87%]
src/sage/numerical/backends/glpk_backend_test.py ..
[ 90%]
src/sage/numerical/backends/glpk_exact_backend_test.py ..
[ 93%]
src/sage/numerical/backends/interactivelp_backend_test.py ..
[ 96%]
src/sage/numerical/backends/ppl_backend_test.py ..
[100%]

=================================== FAILURES
===================================
______________ TestPytestSageScript.test_invoke_on_inputtest_file
______________

self = <conftest_test.TestPytestSageScript object at 0x7f0d91ecdae0>

    def test_invoke_on_inputtest_file(self):
        result = subprocess.run(
            ["sage", "--pytest", input_file],
            capture_output=True,
            text=True,
        )
>       assert result.returncode == 1  # There are failures in the input
test
E       assert 2 == 1
E        +  where 2 = CompletedProcess(args=['sage', '--pytest',
PosixPath('/sage/src/conftest_inputtest.py')], returncode=2,
stdout="======...n !!!!!!!!!!!!!!!!!!!!\n===============================
1 error in 0.18s ===============================\n",
stderr='').returncode

src/conftest_test.py:40: AssertionError
=========================== short test summary info
============================
FAILED src/conftest_test.py::TestPytestSageScript::test_invoke_on_inputt
est_file
============== 1 failed, 62 passed, 2 skipped in 97.56s (0:01:[37](https
://github.com/sagemath/sage/actions/runs/9055116851/job/24875749181?pr=3
7862#step:12:38)) ==============
```

- Fixes sagemath#37536.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#37999
Reported by: Matthias Köppe
Reviewer(s): Nathan Dunfield
@vbraun vbraun closed this as completed in 186dd0e Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant