Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix test/test-configure-python on AIX #1131

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions test/test-configure-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ var gyp = require('../lib/node-gyp')
var requireInject = require('require-inject')
var configure = requireInject('../lib/configure', {
'graceful-fs': {
'openSync': function (file, mode) { return 0; },
'closeSync': function (fd) { },
'writeFile': function (file, data, cb) { cb() },
'stat': function (file, cb) { cb(null, {}) }
}
Expand All @@ -26,7 +28,7 @@ test('configure PYTHONPATH with no existing env', function (t) {
t.equal(process.env.PYTHONPATH, EXPECTED_PYPATH)
return SPAWN_RESULT
}
configure(prog, [])
configure(prog, [], t.fail)
})

test('configure PYTHONPATH with existing env of one dir', function (t) {
Expand All @@ -46,7 +48,7 @@ test('configure PYTHONPATH with existing env of one dir', function (t) {

return SPAWN_RESULT
}
configure(prog, [])
configure(prog, [], t.fail)
})

test('configure PYTHONPATH with existing env of multiple dirs', function (t) {
Expand All @@ -68,5 +70,5 @@ test('configure PYTHONPATH with existing env of multiple dirs', function (t) {

return SPAWN_RESULT
}
configure(prog, [])
configure(prog, [], t.fail)
})