Skip to content

Commit

Permalink
Do not test for elpy top level module for pydoc.
Browse files Browse the repository at this point in the history
If Elpy is not added to the virtualenv or PYTHONPATH explicitly,
the pydoc helper functions will not find it based on the directory
Elpy is called from. That's a pretty niche case, so we simply do
not test for it instead of adding workarouns.

Fixes part of #481
  • Loading branch information
jorgenschaefer committed Feb 8, 2015
1 parent 5b4e5f6 commit 5a7d37e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions elpy/tests/test_pydocutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def test_should_return_top_level_modules(self):
modules = elpy.pydocutils.get_pydoc_completions("")
self.assertIn('sys', modules)
self.assertIn('json', modules)
self.assertIn('elpy', modules)

def test_should_return_submodules(self):
modules = elpy.pydocutils.get_pydoc_completions("elpy")
Expand Down Expand Up @@ -63,7 +62,6 @@ def test_should_return_top_level_modules(self):
modules = elpy.pydocutils.get_modules()
self.assertIn('sys', modules)
self.assertIn('json', modules)
self.assertIn('elpy', modules)

def test_should_return_submodules(self):
modules = elpy.pydocutils.get_modules("elpy")
Expand Down

0 comments on commit 5a7d37e

Please sign in to comment.