[Python-checkins] cpython (3.2): Set archive format explicitly in one distutils test

eric.araujo python-checkins at python.org
Sun Feb 26 04:07:52 CET 2012


http://hg.python.org/cpython/rev/e96777f6dc5c
changeset:   75286:e96777f6dc5c
branch:      3.2
user:        Éric Araujo <merwok at netwok.org>
date:        Sun Feb 26 02:14:33 2012 +0100
summary:
  Set archive format explicitly in one distutils test

files:
  Lib/distutils/tests/test_sdist.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py
--- a/Lib/distutils/tests/test_sdist.py
+++ b/Lib/distutils/tests/test_sdist.py
@@ -6,6 +6,7 @@
 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 @@
 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 @@
         # 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()
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list