Emile Anclin  committed c9fd955

py3k: fix to make it also runnable from pytest

  • Participants
  • Parent commits b03345c

Comments (0)

Files changed (1)

File test/

 import sys
 import os
-import unittest
+from logilab.common.testlib import unittest_main, TestCase
 from os.path import exists
 from cStringIO import StringIO
 from utils import TestReporter
-class DependenciesGraphTC(unittest.TestCase):
+class DependenciesGraphTC(TestCase):
     """test the imports graph function"""
     dest = ''
-class ImportCheckerTC(unittest.TestCase):
+class ImportCheckerTC(TestCase):
     def setUp(self):
         self.linter = l = PyLinter(reporter=TestReporter())
 if __name__ == '__main__':
-    unittest.main()
+    unittest_main()