Commits

Mikhail Korobov  committed cd9d879

tests are fixed for python 2.6

  • Participants
  • Parent commits 3304237

Comments (0)

Files changed (2)

File tests/test_corpora.py

 # -*- coding: utf-8 -*-
 from __future__ import absolute_import, print_function, division, unicode_literals
 import os
-import unittest
+try:
+    import unittest2 as unittest
+except ImportError:
+    import unittest
+
 import tempfile
 import shutil
 from opencorpora.compat import OrderedDict
     coverage
     ordereddict
     argparse
+    unittest2
 
 [testenv:pypy]