diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-03-04 17:46:32 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-03-04 17:49:36 -0500 |
commit | ed252b87e02c39f7ab7ef81c681e3d933b600041 (patch) | |
tree | e8f1b33fd6cb930a12ef64b3bc572f40e6960424 | |
parent | 6a0fabc6472f49621260de215f128a31ae70219b (diff) | |
download | meson-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-x | test cases/unit/39 python extmodule/blaster.py | 4 |
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) |