Skip to content

Commit

Permalink
test: drop "-2" flag in test-find-python.js
Browse files Browse the repository at this point in the history
We no longer use this flag,
so testing for it would understandably fail!
  • Loading branch information
DeeDeeG committed May 16, 2020
1 parent 7d646ec commit ee0b793
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test-find-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,13 @@ test('find python - no python2, no python, unix', function (t) {
})

test('find python - no python, use python launcher', function (t) {
t.plan(4)
t.plan(3)

var f = new TestPythonFinder(null, done)
f.win = true

f.execFile = function (program, args, opts, cb) {
if (program === 'py.exe') {
t.notEqual(args.indexOf('-2'), -1)
t.notEqual(args.indexOf('-c'), -1)
return cb(null, 'Z:\\snake.exe')
}
Expand Down

0 comments on commit ee0b793

Please sign in to comment.