diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-04-20 21:40:47 +0000 |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-04-20 21:40:47 +0000 |
commit | 5e2be8737dad3c7bdaf198d2637d9ef947b5f2f1 (patch) | |
tree | 53a741624965a9e7dd398a3bf320f70566e61896 /Lib/test/test_shutil.py | |
parent | 33798fde76327161e4154bb3b6e774ebe5e902eb (diff) | |
download | cpython-git-5e2be8737dad3c7bdaf198d2637d9ef947b5f2f1.tar.gz |
Merged revisions 80282 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80282 | tarek.ziade | 2010-04-20 23:09:06 +0200 (Tue, 20 Apr 2010) | 1 line
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 f6b047e44b..3dc240c19c 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -487,36 +487,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): |