Skip to content

Commit

Permalink
Merge pull request #492 from pygae/fix-ci
Browse files Browse the repository at this point in the history
Fix CI in newer Python versions
  • Loading branch information
utensil authored Mar 28, 2024
2 parents bcc2fa0 + 4c6efe8 commit 0046162
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Further, to run the complete test suite including the ones using [nbval](https:/

```bash
pip install nbval
pytest --nbval examples/ipython/ test --current-env --sanitize-with test/.nbval_sanitize.cfg
pytest --nbval examples/ipython/ test --nbval-current-env --nbval-sanitize-with test/.nbval_sanitize.cfg
```

This could take more than 10 minutes, please be patient.
Expand Down
4 changes: 4 additions & 0 deletions examples/ipython/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://nbval.readthedocs.io/en/latest/#Skipping-certain-output-types
def pytest_collectstart(collector):
if collector.fspath and collector.fspath.ext == '.ipynb':
collector.skip_compare += 'text/html', 'application/javascript', 'stderr',

0 comments on commit 0046162

Please sign in to comment.