Commit 7c898e5c authored by Johannes Bechberger's avatar Johannes Bechberger

Fix issue in BasicSyntaxTest.short_name

parent e843d83b
...@@ -29,7 +29,8 @@ class BasicSyntaxTest(TestCase): ...@@ -29,7 +29,8 @@ class BasicSyntaxTest(TestCase):
if self.file.startswith(subdir): if self.file.startswith(subdir):
test_dir = subdir test_dir = subdir
break break
assert test_dir != None if test_dir is None:
return path.relpath(self.file, self.env.test_dir)
return path.relpath(self.file, test_dir) return path.relpath(self.file, test_dir)
def run(self) -> BasicTestResult: def run(self) -> BasicTestResult:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment