summaryrefslogtreecommitdiff
path: root/tests/test_containers.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_containers.py')
-rw-r--r--tests/test_containers.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_containers.py b/tests/test_containers.py
index a2a369d..55fe576 100644
--- a/tests/test_containers.py
+++ b/tests/test_containers.py
@@ -20,15 +20,12 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
-try:
- import unittest2 as unittest
-except ImportError:
- import unittest
-
from factory import base
from factory import containers
from factory import declarations
+from .compat import unittest
+
class LazyStubTestCase(unittest.TestCase):
def test_basic(self):
stub = containers.LazyStub({'one': 1, 'two': 2})