Commits

Michele Lacchia committed 0763035

Import fixes

Comments (0)

Files changed (3)

 dist
 .tox
 docs/_build
+htmlcov
 requirements.txt
 import hashlib
 from email.parser import Parser
 
-from .decorator import reify
-from .util import urlsafe_b64encode, utf8, to_json
+from wheel.decorator import reify
+from wheel.util import urlsafe_b64encode, utf8, to_json
 
 # The next major version after this version of the 'wheel' tool:
 VERSION_TOO_HIGH = (1, 0)
 import os
+import distutils
 import pkg_resources
 
 from nose.tools import assert_true, assert_false, assert_equal, raises
-from .install import WheelFile
+
+import wheel.util
+from wheel import egg2wheel
+from wheel.install import WheelFile, pick_best
 
 
 def test_findable():
 
 def test_egg_re():
     """Make sure egg_info_re matches."""
-    from . import egg2wheel
     egg_names = open(pkg_resources.resource_filename('wheel', 'eggnames.txt'))
     for line in egg_names:
         line = line.strip()
 
 
 def test_bdist_wheel():
-    import distutils
     os.chdir(pkg_resources.working_set.by_key['wheel'].location)
     distutils.core.run_setup("setup.py", ["bdist_wheel"])
 
 
 def test_util():
-    import wheel.util
     for i in range(10):
         before = b'*' * i
         encoded = wheel.util.urlsafe_b64encode(before)
         info = res[-1].parsed_filename.groupdict()
         return info['pyver'], info['abi'], info['plat']
 
-    from wheel.install import pick_best, WheelFile
-
     cand_tags = [('py27', 'noabi', 'noarch'), ('py26', 'noabi', 'noarch'),
                  ('cp27', 'noabi', 'linux_i686'),
                  ('cp26', 'noabi', 'linux_i686'),