tests/test_parser.py | raw changeset files shortlog |
1.1 --- a/tests/test_parser.py Sat Aug 11 21:44:44 2018 +0200 1.2 +++ b/tests/test_parser.py Mon Aug 13 15:53:53 2018 +0200 1.3 @@ -1,5 +1,6 @@ 1.4 #!/usr/bin/env python 1.5 1.6 +from os import listdir 1.7 from os.path import abspath, split 1.8 import sys 1.9 1.10 @@ -11,7 +12,7 @@ 1.11 try: 1.12 import moinformat 1.13 except ImportError: 1.14 - if split(parent)[1] == "MoinLight": 1.15 + if "moinformat" in listdir(parent): 1.16 sys.path.append(parent) 1.17 1.18 # Import specific objects.