summaryrefslogtreecommitdiffstats
path: root/test/explain
diff options
context:
space:
mode:
authorPaweł Tomulik <ptomulik@meil.pw.edu.pl>2018-10-13 00:22:40 (GMT)
committerPaweł Tomulik <ptomulik@meil.pw.edu.pl>2018-10-22 10:18:28 (GMT)
commit19b57d5bc728c391adceee5a57d4ae7fb6120d7f (patch)
treeb23039c0dc15764892aee20ec8039f039ba8fa8d /test/explain
parente27d985c627a897e1d234f8a59e1eb91cae1ca2a (diff)
downloadSCons-19b57d5bc728c391adceee5a57d4ae7fb6120d7f.zip
SCons-19b57d5bc728c391adceee5a57d4ae7fb6120d7f.tar.gz
SCons-19b57d5bc728c391adceee5a57d4ae7fb6120d7f.tar.bz2
Correct sheabangs in code snippets under test/
Diffstat (limited to 'test/explain')
-rw-r--r--test/explain/basic.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/explain/basic.py b/test/explain/basic.py
index 19fc328..ce7c817 100644
--- a/test/explain/basic.py
+++ b/test/explain/basic.py
@@ -29,7 +29,7 @@ Verify a lot of the basic operation of the --debug=explain option.
"""
import os
-
+import sys
import TestSCons
test = TestSCons.TestSCons()
@@ -52,7 +52,7 @@ inc_bbb_k = test.workpath('inc', 'bbb.k')
-test.write(cat_py, r"""#!/usr/bin/env python
+test.write(cat_py, r"""#!/usr/bin/env python%s
from __future__ import print_function
import sys
@@ -77,7 +77,7 @@ for f in sys.argv[2:]:
process(outfp, open(f, 'r'))
sys.exit(0)
-""")
+""" % sys.version_info[0])
SConstruct_contents = """\