Commits

Jason R. Coombs committed b18c9c9

Fixed test failures in the doctests on Python 3.

Comments (0)

Files changed (1)

setuptools/tests/__init__.py

 """Tests for the 'setuptools' package"""
 import sys
 import os
+import unittest
 import doctest
 import distutils.core
 import distutils.cmd
 from distutils.core import Extension
 from distutils.version import LooseVersion
 
-import unittest
-
 import setuptools.dist
 from setuptools import Feature
 from setuptools.depends import Require, find_module, get_module_constant, extract_constant
 
 def additional_tests():
+    import doctest, unittest
     suite = unittest.TestSuite((
         doctest.DocFileSuite(
             os.path.join('tests', 'api_tests.txt'),