aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-03-04 17:46:32 -0500
committerEli Schwartz <eschwartz@archlinux.org>2021-03-04 17:49:36 -0500
commited252b87e02c39f7ab7ef81c681e3d933b600041 (patch)
treee8f1b33fd6cb930a12ef64b3bc572f40e6960424
parent6a0fabc6472f49621260de215f128a31ae70219b (diff)
downloadmeson-ed252b87e02c39f7ab7ef81c681e3d933b600041.zip
meson-ed252b87e02c39f7ab7ef81c681e3d933b600041.tar.gz
meson-ed252b87e02c39f7ab7ef81c681e3d933b600041.tar.bz2
use python2-compatible syntax because needed on macOS
Apparently this unittest runs on macOS using the system python2.
-rwxr-xr-xtest cases/unit/39 python extmodule/blaster.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/unit/39 python extmodule/blaster.py b/test cases/unit/39 python extmodule/blaster.py
index daa392d..163b6d4 100755
--- a/test cases/unit/39 python extmodule/blaster.py
+++ b/test cases/unit/39 python extmodule/blaster.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
import sys
import tachyon
@@ -10,5 +10,5 @@ if not isinstance(result, int):
sys.exit(1)
if result != 1:
- print(f'Returned result {result} is not 1.')
+ print('Returned result {} is not 1.'.format(result))
sys.exit(1)