use python2-compatible syntax because needed on macOS

Apparently this unittest runs on macOS using the system python2.
pull/8475/head
Eli Schwartz 4 years ago
parent 6a0fabc647
commit ed252b87e0
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 4
      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)

Loading…
Cancel
Save