Commit 4c40b36f authored by Jason R. Coombs's avatar Jason R. Coombs

Fixed test failures in the doctests on Python 3.

--HG--
branch : distribute
extra : rebase_source : e3c57d5c2650be765d7e152e191f7c7a0e7c578d
parent 5ac3e011
"""Tests for the 'setuptools' package""" """Tests for the 'setuptools' package"""
import sys import sys
import os import os
import unittest
import doctest import doctest
import distutils.core import distutils.core
import distutils.cmd import distutils.cmd
...@@ -9,13 +10,12 @@ from distutils.errors import DistutilsSetupError ...@@ -9,13 +10,12 @@ from distutils.errors import DistutilsSetupError
from distutils.core import Extension from distutils.core import Extension
from distutils.version import LooseVersion from distutils.version import LooseVersion
import unittest
import setuptools.dist import setuptools.dist
from setuptools import Feature from setuptools import Feature
from setuptools.depends import Require, find_module, get_module_constant, extract_constant from setuptools.depends import Require, find_module, get_module_constant, extract_constant
def additional_tests(): def additional_tests():
import doctest, unittest
suite = unittest.TestSuite(( suite = unittest.TestSuite((
doctest.DocFileSuite( doctest.DocFileSuite(
os.path.join('tests', 'api_tests.txt'), os.path.join('tests', 'api_tests.txt'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment