diff options
author | Bernat Gabor <gaborjbernat@gmail.com> | 2018-10-28 13:07:54 +0000 |
---|---|---|
committer | Bernat Gabor <gaborjbernat@gmail.com> | 2018-10-28 16:54:00 +0000 |
commit | 5dbf019ff348fe9a0bc80b6c0868a71d7196bd87 (patch) | |
tree | 1b6c132d20002014cbfd995cc934cd01c7480693 /tests | |
parent | 3bcb31b75276f6cb689e248fc17a5fb1546d2f3a (diff) | |
download | virtualenv-jython.tar.gz |
Jython to CIjython
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_virtualenv.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py index 27f3d10..a48c5e4 100644 --- a/tests/test_virtualenv.py +++ b/tests/test_virtualenv.py @@ -5,10 +5,14 @@ import sys import tempfile import pytest -from mock import NonCallableMock, call, patch import virtualenv +try: + from unittest.mock import NonCallableMock, call, patch +except ImportError: + from mock import NonCallableMock, call, patch + def test_version(): """Should have a version string""" |