Skip to content

Commit b2ddf5b

Browse files
committed
Update to astropy_helpers that should fix #4164 on OSX. The change to the test runner to make sure its base path is always the absolute path improves consistency of behavior between Python 2 and Python 3, where __path__ is a relative path in the former, and an absolute path in the latter.
1 parent af72e2e commit b2ddf5b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎astropy/tests/helper.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _write_pyc_wrapper(*args):
104104

105105
class TestRunner(object):
106106
def __init__(self, base_path):
107-
self.base_path = base_path
107+
self.base_path = os.path.abspath(base_path)
108108

109109
def run_tests(self, package=None, test_path=None, args=None, plugins=None,
110110
verbose=False, pastebin=None, remote_data=False, pep8=False,

‎astropy_helpers‎

0 commit comments

Comments
 (0)