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

sdist setup.py test fails in test_find_module: ImportError: mymodule2 #47

Open
ronaldoussoren opened this issue Oct 11, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@ronaldoussoren
Copy link
Owner

Original report by John Vandenberg (Bitbucket: [John Vandenberg](https://bitbucket.org/John Vandenberg), ).


Using 0.17 sdist as part of packaging at https://build.opensuse.org/package/show/home:jayvdb:py-new/python-modulegraph, both Python 2.7 and Python 3.7 fail running setup.py test

running test
...
running build_ext
...........................s..............................s.s.s.s..........E..........xxxx..xx.xx....xx......

ERROR: test_find_module (modulegraph_tests.test_modulegraph.TestFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/abuild/rpmbuild/BUILD/modulegraph-0.17/modulegraph_tests/test_modulegraph.py", line 203, in test_find_module
    info = modulegraph.find_module('mymodule2', path=[path] + sys.path)
  File "/home/abuild/rpmbuild/BUILD/modulegraph-0.17/modulegraph/modulegraph.py", line 347, in find_module
    raise ImportError(name)
ImportError: mymodule2
@ronaldoussoren
Copy link
Owner Author

Original comment by John Vandenberg (Bitbucket: [John Vandenberg](https://bitbucket.org/John Vandenberg), ).


As issues are disabled on modulegraph2 repo, apologies in advance for adding a quick note here that a lot of tests failed when modulegraph2 tests were run in a RPM VM isolated from the internet. I needed to run nose -e '(TestVirtualEnv|test_six_support|TestPackageFinder|test_distribution|test_all_distributions|test_graph_in_virtual_env|test_graph_distribution|test_dot_graph|test_html_graph|test_report_with_distribution|no_test_stdlib_script)' to get the tests to pass.
packaging at https://build.opensuse.org/package/show/home:jayvdb:py-new/python-modulegraph2

@ronaldoussoren ronaldoussoren added minor bug Something isn't working and removed minor labels Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant