@@ -56,7 +56,7 @@ test('find python - python', function (t) {
5656 poison ( f , 'execFile' )
5757 t . strictEqual ( program , '/path/python' )
5858 t . ok ( / s y s \. v e r s i o n _ i n f o / . test ( args [ 1 ] ) )
59- cb ( null , '2.7.15 ' )
59+ cb ( null , '3.6.7 ' )
6060 }
6161 t . strictEqual ( program ,
6262 process . platform === 'win32' ? '"python"' : 'python' )
@@ -100,7 +100,7 @@ test('find python - python too new', function (t) {
100100 if ( / s y s \. e x e c u t a b l e / . test ( args [ args . length - 1 ] ) ) {
101101 cb ( null , '/path/python' )
102102 } else if ( / s y s \. v e r s i o n _ i n f o / . test ( args [ args . length - 1 ] ) ) {
103- cb ( null , '3.0 .0' )
103+ cb ( null , '3.8 .0' )
104104 } else {
105105 t . fail ( )
106106 }
@@ -134,19 +134,19 @@ test('find python - no python', function (t) {
134134 }
135135} )
136136
137- test ( 'find python - no python2 ' , function ( t ) {
137+ test ( 'find python - no python3 ' , function ( t ) {
138138 t . plan ( 2 )
139139
140140 var f = new TestPythonFinder ( null , done )
141141 f . execFile = function ( program , args , opts , cb ) {
142142 if ( / s y s \. e x e c u t a b l e / . test ( args [ args . length - 1 ] ) ) {
143- if ( program == 'python2 ' ) {
143+ if ( program == 'python3 ' ) {
144144 cb ( new Error ( 'not found' ) )
145145 } else {
146146 cb ( null , '/path/python' )
147147 }
148148 } else if ( / s y s \. v e r s i o n _ i n f o / . test ( args [ args . length - 1 ] ) ) {
149- cb ( null , '2.7.14 ' )
149+ cb ( null , '3.6.7 ' )
150150 } else {
151151 t . fail ( )
152152 }
@@ -159,7 +159,7 @@ test('find python - no python2', function (t) {
159159 }
160160} )
161161
162- test ( 'find python - no python2 , no python, unix' , function ( t ) {
162+ test ( 'find python - no python3 , no python, unix' , function ( t ) {
163163 t . plan ( 2 )
164164
165165 var f = new TestPythonFinder ( null , done )
@@ -197,7 +197,7 @@ test('find python - no python, use python launcher', function (t) {
197197 cb ( new Error ( 'not found' ) )
198198 } else if ( / s y s \. v e r s i o n _ i n f o / . test ( args [ args . length - 1 ] ) ) {
199199 if ( program === 'Z:\\snake.exe' ) {
200- cb ( null , '2.7.14 ' )
200+ cb ( null , '3.6.7 ' )
201201 } else {
202202 t . fail ( )
203203 }
@@ -224,7 +224,7 @@ test('find python - python 3, use python launcher', function (t) {
224224 f . execFile = function ( program , args , opts , cb ) {
225225 poison ( f , 'execFile' )
226226 if ( / s y s \. v e r s i o n _ i n f o / . test ( args [ args . length - 1 ] ) ) {
227- cb ( null , '2.7.14 ' )
227+ cb ( null , '3.6.7 ' )
228228 } else {
229229 t . fail ( )
230230 }
@@ -236,7 +236,7 @@ test('find python - python 3, use python launcher', function (t) {
236236 if ( / s y s \. e x e c u t a b l e / . test ( args [ args . length - 1 ] ) ) {
237237 cb ( null , '/path/python' )
238238 } else if ( / s y s \. v e r s i o n _ i n f o / . test ( args [ args . length - 1 ] ) ) {
239- cb ( null , '3.0 .0' )
239+ cb ( null , '3.8 .0' )
240240 } else {
241241 t . fail ( )
242242 }
@@ -282,7 +282,7 @@ test('find python - python 3, use python launcher, python 2 too old',
282282 if ( / s y s \. e x e c u t a b l e / . test ( args [ args . length - 1 ] ) ) {
283283 cb ( null , '/path/python' )
284284 } else if ( / s y s \. v e r s i o n _ i n f o / . test ( args [ args . length - 1 ] ) ) {
285- cb ( null , '3.0 .0' )
285+ cb ( null , '3.8 .0' )
286286 } else {
287287 t . fail ( )
288288 }
@@ -308,7 +308,7 @@ test('find python - no python, no python launcher, good guess', function (t) {
308308 poison ( f , 'execFile' )
309309 t . ok ( re . test ( program ) )
310310 t . ok ( / s y s \. v e r s i o n _ i n f o / . test ( args [ args . length - 1 ] ) )
311- cb ( null , '2.7.14 ' )
311+ cb ( null , '3.6.7 ' )
312312 }
313313 return cb ( new Error ( 'not found' ) )
314314 }
0 commit comments