Show More
@@ -18,7 +18,11 b' import tempfile' | |||||
18 | from contextlib import contextmanager |
|
18 | from contextlib import contextmanager | |
19 | from io import StringIO |
|
19 | from io import StringIO | |
20 | from subprocess import Popen, PIPE |
|
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 | try: |
|
27 | try: | |
24 | # These tools are used by parts of the runtime, so we make the nose |
|
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