Commits

Jason R. Coombs committed d600fb9

Updated imports, removed excess whitespace

  • Participants
  • Parent commits b860593

Comments (0)

Files changed (1)

setuptools/tests/test_dist_info.py

 """Test .dist-info style distributions.
 """
-import os, shutil, tempfile, unittest
+import os
+import shutil
+import tempfile
+import unittest
+
 import pkg_resources
 from pkg_resources import Requirement
 try:
         dists = {}
         for d in pkg_resources.find_distributions(self.tmpdir):
             dists[d.project_name] = d
-            
+
         assert len(dists) == 2, dists
-            
+
         unversioned = dists['UnversionedDistribution']
         versioned = dists['VersionedDistribution']
-        
-        assert versioned.version == '2.718' # from filename        
+
+        assert versioned.version == '2.718' # from filename
         assert unversioned.version == '0.3' # from METADATA
-                
-    @unittest.skipIf(not has_markerlib, 
-                     "install markerlib to test conditional dependencies") 
+
+    @unittest.skipIf(not has_markerlib,
+                     "install markerlib to test conditional dependencies")
     def test_conditional_dependencies(self):
-        requires = [Requirement.parse('splort==4'), 
+        requires = [Requirement.parse('splort==4'),
                     Requirement.parse('quux>=1.1')]
-        
+
         for d in pkg_resources.find_distributions(self.tmpdir):
             self.assertEquals(d.requires(), requires[:1])
             self.assertEquals(d.requires(extras=('baz',)), requires)
-            self.assertEquals(d.extras, ['baz'])        
+            self.assertEquals(d.extras, ['baz'])
 
     def setUp(self):
         self.tmpdir = tempfile.mkdtemp()
-        versioned = os.path.join(self.tmpdir, 
+        versioned = os.path.join(self.tmpdir,
                                  'VersionedDistribution-2.718.dist-info')
         os.mkdir(versioned)
         open(os.path.join(versioned, 'METADATA'), 'w+').write(
 Requires-Dist: quux (>=1.1); extra == 'baz'
 """)
 
-        unversioned = os.path.join(self.tmpdir, 
+        unversioned = os.path.join(self.tmpdir,
                                    'UnversionedDistribution.dist-info')
         os.mkdir(unversioned)
         open(os.path.join(unversioned, 'METADATA'), 'w+').write(
 
     def tearDown(self):
         shutil.rmtree(self.tmpdir)
-