We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d0b63 commit 5f526b7Copy full SHA for 5f526b7
test/test-python-shell.ts
@@ -55,6 +55,15 @@ describe('PythonShell', function () {
55
pyshell.command.should.eql(['-u', 'test' + sep + 'python' + sep + 'exit-code.py']);
56
pyshell.end(done);
57
});
58
+ it('should fail to spawn python with bad path', function (done) {
59
+ let pyshell = new PythonShell('exit-code.py', {
60
+ pythonPath: 'foeisjofseij'
61
+ }, );
62
+ pyshell.on('error', (err: NodeJS.ErrnoException)=>{
63
+ err.code.should.eql('ENOENT')
64
+ done()
65
+ })
66
+ });
67
it('should spawn a Python process with script arguments', function (done) {
68
let pyshell = new PythonShell('echo_args.py', {
69
args: ['hello', 'world']
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments