@@ -56,7 +56,7 @@ test('find python - python', function (t) {
56
56
poison ( f , 'execFile' )
57
57
t . strictEqual ( program , '/path/python' )
58
58
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 ' )
60
60
}
61
61
t . strictEqual ( program ,
62
62
process . platform === 'win32' ? '"python"' : 'python' )
@@ -100,7 +100,7 @@ test('find python - python too new', function (t) {
100
100
if ( / s y s \. e x e c u t a b l e / . test ( args [ args . length - 1 ] ) ) {
101
101
cb ( null , '/path/python' )
102
102
} 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' )
104
104
} else {
105
105
t . fail ( )
106
106
}
@@ -134,19 +134,19 @@ test('find python - no python', function (t) {
134
134
}
135
135
} )
136
136
137
- test ( 'find python - no python2 ' , function ( t ) {
137
+ test ( 'find python - no python3 ' , function ( t ) {
138
138
t . plan ( 2 )
139
139
140
140
var f = new TestPythonFinder ( null , done )
141
141
f . execFile = function ( program , args , opts , cb ) {
142
142
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 ' ) {
144
144
cb ( new Error ( 'not found' ) )
145
145
} else {
146
146
cb ( null , '/path/python' )
147
147
}
148
148
} 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 ' )
150
150
} else {
151
151
t . fail ( )
152
152
}
@@ -159,7 +159,7 @@ test('find python - no python2', function (t) {
159
159
}
160
160
} )
161
161
162
- test ( 'find python - no python2 , no python, unix' , function ( t ) {
162
+ test ( 'find python - no python3 , no python, unix' , function ( t ) {
163
163
t . plan ( 2 )
164
164
165
165
var f = new TestPythonFinder ( null , done )
@@ -197,7 +197,7 @@ test('find python - no python, use python launcher', function (t) {
197
197
cb ( new Error ( 'not found' ) )
198
198
} else if ( / s y s \. v e r s i o n _ i n f o / . test ( args [ args . length - 1 ] ) ) {
199
199
if ( program === 'Z:\\snake.exe' ) {
200
- cb ( null , '2.7.14 ' )
200
+ cb ( null , '3.6.7 ' )
201
201
} else {
202
202
t . fail ( )
203
203
}
@@ -224,7 +224,7 @@ test('find python - python 3, use python launcher', function (t) {
224
224
f . execFile = function ( program , args , opts , cb ) {
225
225
poison ( f , 'execFile' )
226
226
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 ' )
228
228
} else {
229
229
t . fail ( )
230
230
}
@@ -236,7 +236,7 @@ test('find python - python 3, use python launcher', function (t) {
236
236
if ( / s y s \. e x e c u t a b l e / . test ( args [ args . length - 1 ] ) ) {
237
237
cb ( null , '/path/python' )
238
238
} 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' )
240
240
} else {
241
241
t . fail ( )
242
242
}
@@ -282,7 +282,7 @@ test('find python - python 3, use python launcher, python 2 too old',
282
282
if ( / s y s \. e x e c u t a b l e / . test ( args [ args . length - 1 ] ) ) {
283
283
cb ( null , '/path/python' )
284
284
} 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' )
286
286
} else {
287
287
t . fail ( )
288
288
}
@@ -308,7 +308,7 @@ test('find python - no python, no python launcher, good guess', function (t) {
308
308
poison ( f , 'execFile' )
309
309
t . ok ( re . test ( program ) )
310
310
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 ' )
312
312
}
313
313
return cb ( new Error ( 'not found' ) )
314
314
}
0 commit comments