diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-04-20 21:09:06 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-04-20 21:09:06 (GMT) |
commit | e593fad81b0cc16c98c61ae0e162cff6dbca0f25 (patch) | |
tree | 67263cd6c804314971c5290808b3a9f8f9133573 /Lib/test/test_shutil.py | |
parent | 8e6ca8fb1909416be6dd6d25ad5e5a772f19e67e (diff) | |
download | cpython-e593fad81b0cc16c98c61ae0e162cff6dbca0f25.zip cpython-e593fad81b0cc16c98c61ae0e162cff6dbca0f25.tar.gz cpython-e593fad81b0cc16c98c61ae0e162cff6dbca0f25.tar.bz2 |
removed ztar support in shutil.make_archive
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r-- | Lib/test/test_shutil.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index c3877f9..b879039 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -453,36 +453,6 @@ class TestShutil(unittest.TestCase): tarball = base_name + '.tar' self.assertTrue(os.path.exists(tarball)) - @unittest.skipUnless(find_executable('compress'), - 'The compress program is required') - def test_compress_deprecated(self): - tmpdir, tmpdir2, base_name = self._create_files() - - # using compress and testing the PendingDeprecationWarning - old_dir = os.getcwd() - os.chdir(tmpdir) - try: - with captured_stdout() as s, check_warnings(quiet=False) as w: - _make_tarball(base_name, 'dist', compress='compress') - finally: - os.chdir(old_dir) - tarball = base_name + '.tar.Z' - self.assertTrue(os.path.exists(tarball)) - self.assertEqual(len(w.warnings), 1) - - # same test with dry_run - os.remove(tarball) - old_dir = os.getcwd() - os.chdir(tmpdir) - try: - with captured_stdout() as s, check_warnings(quiet=False) as w: - _make_tarball(base_name, 'dist', compress='compress', - dry_run=True) - finally: - os.chdir(old_dir) - self.assertFalse(os.path.exists(tarball)) - self.assertEqual(len(w.warnings), 1) - @unittest.skipUnless(zlib, "Requires zlib") @unittest.skipUnless(ZIP_SUPPORT, 'Need zip support to run') def test_make_zipfile(self): |