summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2012-02-26 01:14:33 (GMT)
committerÉric Araujo <merwok@netwok.org>2012-02-26 01:14:33 (GMT)
commit845a77205f9282c2f1aa36d3c4cc554b66689151 (patch)
tree3c8bccd42fe4f23137990db5e0940ef60d4f674c /Lib/distutils
parentfab976624df27bfcf999f93a1047173c27555725 (diff)
downloadcpython-845a77205f9282c2f1aa36d3c4cc554b66689151.zip
cpython-845a77205f9282c2f1aa36d3c4cc554b66689151.tar.gz
cpython-845a77205f9282c2f1aa36d3c4cc554b66689151.tar.bz2
Set archive format explicitly in one distutils test
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_sdist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py
index fd71dac..1ba2a1a 100644
--- a/Lib/distutils/tests/test_sdist.py
+++ b/Lib/distutils/tests/test_sdist.py
@@ -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()