Skip to content

Commit

Permalink
Remove relative imports introduced in MDAnalysis#787
Browse files Browse the repository at this point in the history
We prohibit relative imports in the tests (see MDAnalysis#189). When adding tests
for the dynamic author list (MDAnalysis#787), I introduced some such relative
imports.
  • Loading branch information
jbarnoud committed Mar 20, 2016
1 parent a68eedf commit c7a1593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testsuite/MDAnalysisTests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

__version__ = "0.14.1-dev0" # keep in sync with RELEASE in setup.py
try:
from .authors import __authors__
from MDAnalysisTests.authors import __authors__
except ImportError:
logger.info('Could not find authors.py, __authors__ will be empty.')
__authors__ = []
Expand Down
2 changes: 1 addition & 1 deletion testsuite/MDAnalysisTests/test_authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def test_package_authors():


def test_testsuite_authors():
from . import __authors__
from MDAnalysisTests import __authors__
assert_(len(__authors__) > 0,
'Could not find the list of authors')

0 comments on commit c7a1593

Please sign in to comment.