Commits

Hugo Lopes Tavares committed ab44933

using __repr__ instead of __str__ - it fails in windows and is less code; suggestion added by ianb

Comments (0)

Files changed (1)

tests/test_pip.py

             self._copy_wsgi_intercept_files()
         site_packages = self.root_path / self.site_packages
         pth = open(os.path.join(site_packages, 'wsgi_intercept_pypi.pth'), 'w')
-        pth.write('import sys; sys.path.insert(0, "%s"); '
+        pth.write('import sys; sys.path.insert(0, %r); '
                   'import pypi_server; '
                   'pypi_server.use_fake_pypi(); '
                   'sys.path.pop(0)' % here.abspath)