From: Serhiy Storchaka Date: Sat, 16 May 2015 23:23:02 +0000 (+0300) Subject: Fixed issue #16314 test for the case when lzma is not available. X-Git-Tag: v3.5.0b1~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7e39387b36f3eaad769f6728434fede2aef7b3b;p=thirdparty%2FPython%2Fcpython.git Fixed issue #16314 test for the case when lzma is not available. --- diff --git a/Lib/distutils/tests/test_archive_util.py b/Lib/distutils/tests/test_archive_util.py index 81d4c74a7b85..02fa1e27a47f 100644 --- a/Lib/distutils/tests/test_archive_util.py +++ b/Lib/distutils/tests/test_archive_util.py @@ -325,7 +325,7 @@ class ArchiveUtilTestCase(support.TempdirManager, self.assertEqual(os.path.basename(res), 'archive.tar.bz2') self.assertEqual(self._tarinfo(res), self._created_files) - @unittest.skipUnless(bz2, 'Need xz support to run') + @unittest.skipUnless(lzma, 'Need xz support to run') def test_make_archive_xztar(self): base_dir = self._create_files() base_name = os.path.join(self.mkdtemp() , 'archive')