Commit 6e5272fa authored by Éric Araujo's avatar Éric Araujo

Set archive format explicitly in one distutils test

parent c3e7f5f5
...@@ -6,6 +6,7 @@ import warnings ...@@ -6,6 +6,7 @@ import warnings
import zipfile import zipfile
from os.path import join from os.path import join
from textwrap import dedent from textwrap import dedent
from test.support import captured_stdout, check_warnings, run_unittest
try: try:
import zlib import zlib
...@@ -13,7 +14,6 @@ try: ...@@ -13,7 +14,6 @@ try:
except ImportError: except ImportError:
ZLIB_SUPPORT = False ZLIB_SUPPORT = False
from test.support import captured_stdout, check_warnings, run_unittest
from distutils.command.sdist import sdist, show_formats from distutils.command.sdist import sdist, show_formats
from distutils.core import Distribution from distutils.core import Distribution
...@@ -326,6 +326,7 @@ class SDistTestCase(PyPIRCCommandTestCase): ...@@ -326,6 +326,7 @@ class SDistTestCase(PyPIRCCommandTestCase):
# filling data_files by pointing files in package_data # filling data_files by pointing files in package_data
dist.package_data = {'somecode': ['*.txt']} dist.package_data = {'somecode': ['*.txt']}
self.write_file((self.tmp_dir, 'somecode', 'doc.txt'), '#') self.write_file((self.tmp_dir, 'somecode', 'doc.txt'), '#')
cmd.formats = ['gztar']
cmd.ensure_finalized() cmd.ensure_finalized()
cmd.run() cmd.run()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment