Skip to content

Commit 21571c6

Browse files
committed
test: verify backward compatability
1 parent f89cb95 commit 21571c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test-python-shell.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,14 @@ describe('PythonShell', function () {
118118
PythonShell.defaultOptions = {};
119119
})
120120
it('should be able to execute a string of python code using callbacks', function (done) {
121-
PythonShell.runString('print("hello");print("world")', null, function (err, results) {
121+
let pythonshell = PythonShell.runString('print("hello");print("world")', null, function (err, results) {
122122
if (err) return done(err);
123123
results.should.be.an.Array().and.have.lengthOf(2);
124124
results.should.eql(['hello', 'world']);
125125
done();
126126
});
127+
128+
pythonshell.should.be.an.instanceOf(PythonShell);
127129
});
128130
it('should be able to execute a string of python code using promises', async function () {
129131
let results = await PythonShell.runString('print("hello");print("world")');

0 commit comments

Comments
 (0)