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.

rst2pdf/0.95: unable to run tests

See original GitHub issue
$ PYTHONPATH=. python3 setup.py test
running test
running egg_info
writing rst2pdf.egg-info/PKG-INFO
writing dependency_links to rst2pdf.egg-info/dependency_links.txt
writing entry points to rst2pdf.egg-info/entry_points.txt
writing requirements to rst2pdf.egg-info/requires.txt
writing top-level names to rst2pdf.egg-info/top_level.txt
reading manifest file 'rst2pdf.egg-info/SOURCES.txt'
writing manifest file 'rst2pdf.egg-info/SOURCES.txt'
running build_ext
test_rst2pdf (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: test_rst2pdf (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_rst2pdf
Traceback (most recent call last):
  File "/usr/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
ModuleNotFoundError: No module named 'rst2pdf.tests.test_rst2pdf'


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>

how do you run tests?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
normanlorraincommented, Jan 6, 2020

I’m working on towards a PR that would enable use of pytest. Not sure it’s ready yet, but FYI it’s here: (github). Tested on Python 3.8.1, on Linux (Windows WSL)

It reuses the existing tests (md5, output, etc), and yields a report like:

… tests/input/test_stylesheet_includes.txt::tests/input/test_stylesheet_includes.txt PASSED [ 95%] tests/input/test_svg.txt::tests/input/test_svg.txt FAILED [ 95%] tests/input/test_svg_alignment.txt::tests/input/test_svg_alignment.txt FAILED [ 95%] tests/input/test_table_1.txt::tests/input/test_table_1.txt PASSED [ 96%] tests/input/test_table_classes.txt::tests/input/test_table_classes.txt PASSED [ 96%]

====== 15 failed, 258 passed, 2 skipped in 119.62s (0:01:59) ================

0reactions
akrabatcommented, Jan 6, 2020

That’s great to hear @normanlorrain.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run tests - Visual Studio Feedback
Tests.csproj has an unsupported reference to a test framework 'Microsoft.VisualStudio.QualityTools.UnitTestFramework'. To run tests, remove this reference ...
Read more >
Unable to Run Certain Unit Tests
I'm running into an issue where I try and run certain unit tests but get a failure as such below. Are there any...
Read more >
Can't run a simple Unit Test #Cs #VS19 #MSTest
To see the error you should open the Output pane and in the Show output from: box, you should choose the tests option....
Read more >
Running Tests and Viewing Results - Apple Developer
Running Tests and Viewing Results. Running tests and viewing the results is easy to do using the Xcode test navigator, as you saw...
Read more >
Java Unit Testing with JUnit and TestNG
To run the test case, right-click on the file ⇒ Run as ⇒ JUnit Test. ... Try modify one of the test to...
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