Skip to content

Commit 1338e54

Browse files
author
richbalmer
committed
Add test
1 parent 5d64454 commit 1338e54

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test-python-shell.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ describe('PythonShell', function () {
8080
done();
8181
})
8282
})
83+
84+
it('should honour defaultOptions.pythonPath', function ( done) {
85+
PythonShell.defaultOptions = {
86+
pythonPath: "/usr/bin/python2.7"
87+
};
88+
PythonShell.checkSyntax("print 1").then(()=>{
89+
done();
90+
})
91+
})
8392
})
8493

8594
// #158 these tests are failing on appveyor windows node 8/10 python 2/3

0 commit comments

Comments
 (0)