##// END OF EJS Templates
Fix tests for Python 2
Thomas Kluyver -
Show More
@@ -18,7 +18,11 b' import tempfile'
18 18 from contextlib import contextmanager
19 19 from io import StringIO
20 20 from subprocess import Popen, PIPE
21 from unittest.mock import patch
21 try:
22 from unittest.mock import patch
23 except ImportError:
24 # Python 2 compatibility
25 from mock import patch
22 26
23 27 try:
24 28 # These tools are used by parts of the runtime, so we make the nose
General Comments 0
You need to be logged in to leave comments. Login now