]> granicus.if.org Git - python/commitdiff
Set archive format explicitly in one distutils test
authorÉric Araujo <merwok@netwok.org>
Sun, 26 Feb 2012 01:14:33 +0000 (02:14 +0100)
committerÉric Araujo <merwok@netwok.org>
Sun, 26 Feb 2012 01:14:33 +0000 (02:14 +0100)
Lib/distutils/tests/test_sdist.py

index fd71dac8d6e22ce07801fbe1b0acbdb328d16f47..1ba2a1a6a9aebaf6b8dd528c53445705bef2462a 100644 (file)
@@ -6,6 +6,7 @@ import warnings
 import zipfile
 from os.path import join
 from textwrap import dedent
+from test.support import captured_stdout, check_warnings, run_unittest
 
 try:
     import zlib
@@ -13,7 +14,6 @@ try:
 except ImportError:
     ZLIB_SUPPORT = False
 
-from test.support import captured_stdout, check_warnings, run_unittest
 
 from distutils.command.sdist import sdist, show_formats
 from distutils.core import Distribution
@@ -326,6 +326,7 @@ class SDistTestCase(PyPIRCCommandTestCase):
         # filling data_files by pointing files in package_data
         dist.package_data = {'somecode': ['*.txt']}
         self.write_file((self.tmp_dir, 'somecode', 'doc.txt'), '#')
+        cmd.formats = ['gztar']
         cmd.ensure_finalized()
         cmd.run()