|
@@ -248,7 +248,7 @@ def do_run_test(self, test: str) -> TestResult:
|
|
|
|
|
|
with f_test.open(encoding="utf-8") as f:
|
|
with f_test.open(encoding="utf-8") as f:
|
|
try:
|
|
try:
|
|
- if f.readline() == '#!/usr/bin/env python3':
|
|
|
|
|
|
+ if f.readline().rstrip() == '#!/usr/bin/env python3':
|
|
args.insert(0, self.env.python)
|
|
args.insert(0, self.env.python)
|
|
except UnicodeDecodeError: # binary test? for future.
|
|
except UnicodeDecodeError: # binary test? for future.
|
|
pass
|
|
pass
|