Esempio n. 1
0
    def setUp(self):
        self.old_sys_path = copy.copy(sys.path)
        self.cwd = os.getcwd()
        self.tmpdir = tempfile.mkdtemp()
        os.chdir(TOPDIR)
        _python_cmd("setup.py", "-q", "egg_info", "-RDb", "''", "sdist", "--dist-dir", "%s" % self.tmpdir)
        tarball = os.listdir(self.tmpdir)[0]
        self.tarball = os.path.join(self.tmpdir, tarball)
        import urllib.request, urllib.error, urllib.parse

        urllib.request.urlopen = self.urlopen
Esempio n. 2
0
 def setUp(self):
     self.old_sys_path = copy.copy(sys.path)
     self.cwd = os.getcwd()
     self.tmpdir = tempfile.mkdtemp()
     os.chdir(TOPDIR)
     _python_cmd("setup.py", "-q", "egg_info", "-RDb", "''", "sdist",
                 "--dist-dir", "%s" % self.tmpdir)
     tarball = os.listdir(self.tmpdir)[0]
     self.tarball = os.path.join(self.tmpdir, tarball)
     import urllib2
     urllib2.urlopen = self.urlopen
 def test_build_egg(self):
     os.chdir(os.path.join(CURDIR, "python3.3_bdist_egg_test"))
     self.assertTrue(_python_cmd("setup.py", "bdist_egg"))
Esempio n. 4
0
 def test_build_egg(self):
     os.chdir(os.path.join(CURDIR, 'python3.3_bdist_egg_test'))
     self.assertTrue(_python_cmd("setup.py", "bdist_egg"))