@@ -62,7 +62,7 @@ test('find python - python', function (t) {
62
62
}
63
63
f . execFile = function ( program , args , opts , cb ) {
64
64
t . strictEqual ( program , 'python' )
65
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
65
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
66
66
cb ( null , '2.7.0' )
67
67
}
68
68
f . checkPython ( )
@@ -83,7 +83,7 @@ test('find python - python too old', function (t) {
83
83
}
84
84
f . execFile = function ( program , args , opts , cb ) {
85
85
t . strictEqual ( program , 'python' )
86
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
86
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
87
87
cb ( null , '2.3.4' )
88
88
}
89
89
f . checkPython ( )
@@ -103,7 +103,7 @@ test('find python - python too new', function (t) {
103
103
}
104
104
f . execFile = function ( program , args , opts , cb ) {
105
105
t . strictEqual ( program , 'python' )
106
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
106
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
107
107
cb ( null , '3.0.0' )
108
108
}
109
109
f . checkPython ( )
@@ -142,7 +142,7 @@ test('find python - no python2', function (t) {
142
142
}
143
143
f . execFile = function ( program , args , opts , cb ) {
144
144
t . strictEqual ( program , 'python' )
145
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
145
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
146
146
cb ( null , '2.7.0' )
147
147
}
148
148
f . checkPython ( )
@@ -189,7 +189,7 @@ test('find python - no python, use python launcher', function (t) {
189
189
f . execFile = function ( program , args , opts , cb ) {
190
190
f . execFile = function ( program , args , opts , cb ) {
191
191
t . strictEqual ( program , 'Z:\\snake.exe' )
192
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
192
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
193
193
cb ( null , '2.7.0' )
194
194
}
195
195
t . strictEqual ( program , 'py.exe' )
@@ -220,7 +220,7 @@ test('find python - python 3, use python launcher', function (t) {
220
220
f . execFile = function ( program , args , opts , cb ) {
221
221
f . execFile = function ( program , args , opts , cb ) {
222
222
t . strictEqual ( program , 'Z:\\snake.exe' )
223
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
223
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
224
224
cb ( null , '2.7.0' )
225
225
}
226
226
t . strictEqual ( program , 'py.exe' )
@@ -229,7 +229,7 @@ test('find python - python 3, use python launcher', function (t) {
229
229
cb ( null , 'Z:\\snake.exe' )
230
230
}
231
231
t . strictEqual ( program , 'python' )
232
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
232
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
233
233
cb ( null , '3.0.0' )
234
234
}
235
235
f . checkPython ( )
@@ -257,7 +257,7 @@ test('find python - python 3, use python launcher, python 2 too old',
257
257
f . execFile = function ( program , args , opts , cb ) {
258
258
f . execFile = function ( program , args , opts , cb ) {
259
259
t . strictEqual ( program , 'Z:\\snake.exe' )
260
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
260
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
261
261
cb ( null , '2.3.4' )
262
262
}
263
263
t . strictEqual ( program , 'py.exe' )
@@ -266,7 +266,7 @@ test('find python - python 3, use python launcher, python 2 too old',
266
266
cb ( null , 'Z:\\snake.exe' )
267
267
}
268
268
t . strictEqual ( program , 'python' )
269
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
269
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
270
270
cb ( null , '3.0.0' )
271
271
}
272
272
f . checkPython ( )
@@ -291,7 +291,7 @@ test('find python - no python, no python launcher, good guess', function (t) {
291
291
f . execFile = function ( program , args , opts , cb ) {
292
292
f . execFile = function ( program , args , opts , cb ) {
293
293
t . ok ( re . test ( program ) )
294
- t . ok ( / i m p o r t p l a t f o r m / . test ( args [ 1 ] ) )
294
+ t . ok ( / i m p o r t s y s / . test ( args [ 1 ] ) )
295
295
cb ( null , '2.7.0' )
296
296
}
297
297
t . strictEqual ( program , 'py.exe' )
0 commit comments