@@ -52,29 +52,29 @@ def test_execute_platform_bbp(self):
5252 Run Broadband Plotform to make sure we can start it
5353 """
5454 self .install = InstallCfg ()
55- cmd = ("python3 %s -v >/dev/null" %
56- (os .path .join (self .install .A_COMP_DIR ,
57- "run_bbp.py" )))
55+ cmd = ("%s %s -v >/dev/null" %
56+ (sys . executable , os .path .join (self .install .A_COMP_DIR ,
57+ "run_bbp.py" )))
5858 self .assertFalse (bband_utils .runprog (cmd , False ) != 0 ,
5959 "Cannot start Broadband plotform!" )
6060
6161 def test_python_code_comps (self ):
6262 """
63- Run Python with -tt flag to detect mix of tabs and spaces in the code
63+ Run Python compileall to detect mix of tabs and spaces in the code
6464 """
6565 self .install = InstallCfg ()
66- cmd = ("python3 -tt -m compileall -f -q -l %s" %
67- (self .install .A_COMP_DIR ))
66+ cmd = ("%s -m compileall -f -q -l %s" %
67+ (sys . executable , self .install .A_COMP_DIR ))
6868 self .assertFalse (bband_utils .runprog (cmd , False ) != 0 ,
6969 "Python code in comps directory mixes tabs and spaces!" )
7070
7171 def test_python_code_tests (self ):
7272 """
73- Run Python with -tt flag to detect mix of tabs and spaces in the code
73+ Run Python compileall to detect mix of tabs and spaces in the code
7474 """
7575 self .install = InstallCfg ()
76- cmd = ("python -tt -m compileall -f -q -l %s" %
77- (self .install .A_TEST_DIR ))
76+ cmd = ("%s -m compileall -f -q -l %s" %
77+ (sys . executable , self .install .A_TEST_DIR ))
7878 self .assertFalse (bband_utils .runprog (cmd , False ) != 0 ,
7979 "Python code in test directory mixes tabs and spaces!" )
8080
0 commit comments