Skip to content

Commit ba31081

Browse files
committed
Change test_no_js_console to work in later node versions
In the latest node version, `console.log` is defined in `runInThisContext`, so this test would fail
1 parent 0a457a4 commit ba31081

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_examples.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ def test_no_js_console(self):
555555
output = pipe.getvalue()
556556
pipe.close()
557557

558-
self.assertIn("ReferenceError: console is not defined", output)
558+
self.assertNotIn("[log] Log message", output)
559+
self.assertNotIn("[err] Error message", output)
559560

560561
if __name__ == '__main__':
561562
unittest.main()

0 commit comments

Comments
 (0)