From c7a1593f14d0871a1db21e6f192977d5e450d837 Mon Sep 17 00:00:00 2001 From: Jonathan Barnoud Date: Sun, 20 Mar 2016 14:26:54 +0100 Subject: [PATCH] Remove relative imports introduced in #787 We prohibit relative imports in the tests (see #189). When adding tests for the dynamic author list (#787), I introduced some such relative imports. --- testsuite/MDAnalysisTests/__init__.py | 2 +- testsuite/MDAnalysisTests/test_authors.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/MDAnalysisTests/__init__.py b/testsuite/MDAnalysisTests/__init__.py index 633c0e949ce..ca0efc0f300 100644 --- a/testsuite/MDAnalysisTests/__init__.py +++ b/testsuite/MDAnalysisTests/__init__.py @@ -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__ = [] diff --git a/testsuite/MDAnalysisTests/test_authors.py b/testsuite/MDAnalysisTests/test_authors.py index ab5cb0aadef..d799980c410 100644 --- a/testsuite/MDAnalysisTests/test_authors.py +++ b/testsuite/MDAnalysisTests/test_authors.py @@ -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')