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

test_docs.py in wheel fails #183

Open
mtelka opened this issue Aug 10, 2023 · 5 comments
Open

test_docs.py in wheel fails #183

mtelka opened this issue Aug 10, 2023 · 5 comments

Comments

@mtelka
Copy link

mtelka commented Aug 10, 2023

The test_docs.py included in wheel fails with the following assertion:

AssertionError: could not find my setup.py

Maybe the test should pass (or skip) instead of failure if there is no setup.py available.

@mtelka
Copy link
Author

mtelka commented Aug 10, 2023

This is the quick and dirty workaround:

--- persistent-5.0/src/persistent/tests/test_docs.py.orig
+++ persistent-5.0/src/persistent/tests/test_docs.py
@@ -36,7 +36,7 @@
         prev, here = here, os.path.dirname(here)
         if here == prev:
             # Let's avoid infinite loops at root
-            raise AssertionError('could not find my setup.py')
+            return unittest.TestSuite()
 
     docs = os.path.join(here, 'docs', 'api')
 

@d-maurer
Copy link

d-maurer commented Aug 10, 2023 via email

@mtelka
Copy link
Author

mtelka commented Aug 10, 2023

Yes, when the test is run in the git repo (or in sdist) then it pass. I'm talking about wheel. There is no setup.py in the wheel so test_docs.py cannot pass there. Maybe the better solution would be just to exclude test_docs.py from wheel. Or, maybe even better, simply exclude all tests from wheel?

@d-maurer
Copy link

d-maurer commented Aug 10, 2023 via email

@mtelka
Copy link
Author

mtelka commented Aug 10, 2023

Would you like to sign a contributor agreement ...

Sorry, no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants