Commits

Daniel Holth committed ac776ef

in packaging unittests, install_base is often None

  • Participants
  • Parent commits 65c3af0

Comments (0)

Files changed (1)

File Lib/packaging/command/install_distinfo.py

     @staticmethod
     def pep376path(fpath, install_base, install_dir):
         """Return PEP-376 path (but always with platform path separators)"""        
+        if install_base is None: # needed for unit tests
+            return install_dir
         # install_base is 'prefix' from PEP-376
         install_base = install_base.rstrip(os.path.sep) + os.path.sep
         # install_dir is 'base location' from PEP-376