# HG changeset patch # User Jeff Hammel # Date 1330642119 28800 # Node ID a40f050812cba40911e2b8ceede4f27b0115c6e1 # Parent 59368c0bbd8d8ba1ed17d7644ae5575f6a022402 start inspecting archive contents diff -r 59368c0bbd8d -r a40f050812cb tests/doctest.txt --- a/tests/doctest.txt Thu Mar 01 14:44:16 2012 -0800 +++ b/tests/doctest.txt Thu Mar 01 14:48:39 2012 -0800 @@ -52,6 +52,13 @@ >>> tmpdir = tempfile.mkdtemp() >>> archive = tarfile.TarFile.open(path) + >>> for member in archive.getmembers(): + ... archive.extract(member, path=tmpdir) + >>> os.listdir(tmpdir) + ['HelloWorld-0.0'] + >>> srcdir = os.path.join(tmpdir, 'HelloWorld-0.0') + >>> os.path.exists(os.path.join(srcdir, 'setup.py')) + True >>> shutil.rmtree(tmpdir) Upload the same package but with the wrong name::