Skip to content

Commit

Permalink
fix test_det_pr_target_repo, take into account that __file__ may poin…
Browse files Browse the repository at this point in the history
…t to github.pyc...
  • Loading branch information
boegel committed Apr 7, 2020
1 parent aab059c commit 1ac9137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/framework/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,8 @@ def test_det_pr_target_repo(self):
# if only Python files are involved, result is easyblocks or framework repo;
# all Python files are easyblocks => easyblocks repo, otherwise => framework repo;
# files are opened and inspected here to discriminate between easyblocks & other Python files, so must exist!
github_py = os.path.abspath(__file__)
testdir = os.path.dirname(github_py)
testdir = os.path.dirname(os.path.abspath(__file__))
github_py = os.path.join(testdir, 'github.py')

configuremake = os.path.join(testdir, 'sandbox', 'easybuild', 'easyblocks', 'generic', 'configuremake.py')
self.assertTrue(os.path.exists(configuremake))
Expand Down

0 comments on commit 1ac9137

Please sign in to comment.