question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

astropy.test() should be able to test docstrings

See original GitHub issue

My conclusion from #8146 is that astropy.test() (testing installed code) is not running the exact same set of tests under the same settings as python setup.py test (testing full source code). Do we care? If so, what can we do about it (probably would involve refactoring the test runner)?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
bsipoczcommented, Nov 18, 2018

I suppose the difference is coming mainly from the fact that the narrative docs is not available in the installed version?

1reaction
drdavellacommented, Nov 18, 2018

This is not at all surprising. I’m not sure if we care or not. If possible can you put a diff here?

Friends, I beg of you, let’s please consider axing the test runner entirely.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing Guidelines — Astropy v5.3.dev149+gd9cb18f5a
Testing Guidelines¶. This section describes the testing framework and format standards for tests in Astropy core and coordinated packages, and also serves ...
Read more >
Testing Guidelines — Astropy v1.2.dev14793
The safest way to run the astropy test suite is via the setup command test . This is invoked by running python setup.py...
Read more >
Testing Guidelines — Astropy v0.4.2
The safest way to run the astropy test suite is via the setup command test. This is invoked by running python setup.py test...
Read more >
astropy/pytest-doctestplus
Python provides a mechanism for testing code snippets that are provided in Python docstrings. The unit test framework pytest provides a mechanism for...
Read more >
Known Issues — Astropy v0.3.dev3797
Displaying long docstrings that contain Unicode characters may fail on some platforms ... When running the Astropy tests using astropy.test() in an IPython ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found