2004-08-03 13:37:40 -03:00
|
|
|
"""Tests for distutils.dist."""
|
|
|
|
import os
|
2007-08-08 22:03:29 -03:00
|
|
|
import io
|
2004-08-03 13:37:40 -03:00
|
|
|
import sys
|
|
|
|
import unittest
|
2008-12-29 18:38:38 -04:00
|
|
|
import warnings
|
2009-12-06 05:28:17 -04:00
|
|
|
import textwrap
|
2004-08-03 13:37:40 -03:00
|
|
|
|
2013-05-12 07:36:07 -03:00
|
|
|
from unittest import mock
|
|
|
|
|
2013-11-10 19:15:03 -04:00
|
|
|
from distutils.dist import Distribution, fix_help_options, DistributionMetadata
|
2009-05-17 07:50:24 -03:00
|
|
|
from distutils.cmd import Command
|
|
|
|
|
2010-11-05 23:44:43 -03:00
|
|
|
from test.support import TESTFN, captured_stdout, run_unittest
|
2009-02-14 10:35:51 -04:00
|
|
|
from distutils.tests import support
|
2004-08-03 13:37:40 -03:00
|
|
|
|
|
|
|
|
2009-05-17 07:50:24 -03:00
|
|
|
class test_dist(Command):
|
2004-08-03 13:37:40 -03:00
|
|
|
"""Sample distutils extension command."""
|
|
|
|
|
|
|
|
user_options = [
|
|
|
|
("sample-option=", "S", "help text"),
|
2013-05-12 07:36:07 -03:00
|
|
|
]
|
2004-08-03 13:37:40 -03:00
|
|
|
|
|
|
|
def initialize_options(self):
|
|
|
|
self.sample_option = None
|
|
|
|
|
|
|
|
|
2009-05-17 07:50:24 -03:00
|
|
|
class TestDistribution(Distribution):
|
2004-08-03 13:37:40 -03:00
|
|
|
"""Distribution subclasses that avoids the default search for
|
|
|
|
configuration files.
|
|
|
|
|
|
|
|
The ._config_files attribute must be set before
|
|
|
|
.parse_config_files() is called.
|
|
|
|
"""
|
|
|
|
|
|
|
|
def find_config_files(self):
|
|
|
|
return self._config_files
|
|
|
|
|
|
|
|
|
2010-07-22 09:50:05 -03:00
|
|
|
class DistributionTestCase(support.LoggingSilencer,
|
2013-11-10 19:11:00 -04:00
|
|
|
support.TempdirManager,
|
2009-10-18 08:34:51 -03:00
|
|
|
support.EnvironGuard,
|
2009-06-01 19:36:26 -03:00
|
|
|
unittest.TestCase):
|
2004-08-03 13:37:40 -03:00
|
|
|
|
|
|
|
def setUp(self):
|
2009-05-10 09:20:44 -03:00
|
|
|
super(DistributionTestCase, self).setUp()
|
2009-10-18 08:34:51 -03:00
|
|
|
self.argv = sys.argv, sys.argv[:]
|
2004-08-03 13:37:40 -03:00
|
|
|
del sys.argv[1:]
|
|
|
|
|
|
|
|
def tearDown(self):
|
2009-10-18 08:34:51 -03:00
|
|
|
sys.argv = self.argv[0]
|
|
|
|
sys.argv[:] = self.argv[1]
|
2009-05-10 09:20:44 -03:00
|
|
|
super(DistributionTestCase, self).tearDown()
|
2004-08-03 13:37:40 -03:00
|
|
|
|
|
|
|
def create_distribution(self, configfiles=()):
|
|
|
|
d = TestDistribution()
|
|
|
|
d._config_files = configfiles
|
|
|
|
d.parse_config_files()
|
|
|
|
d.parse_command_line()
|
|
|
|
return d
|
|
|
|
|
|
|
|
def test_command_packages_unspecified(self):
|
|
|
|
sys.argv.append("build")
|
|
|
|
d = self.create_distribution()
|
|
|
|
self.assertEqual(d.get_command_packages(), ["distutils.command"])
|
|
|
|
|
|
|
|
def test_command_packages_cmdline(self):
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
from distutils.tests.test_dist import test_dist
|
2004-08-03 13:37:40 -03:00
|
|
|
sys.argv.extend(["--command-packages",
|
|
|
|
"foo.bar,distutils.tests",
|
|
|
|
"test_dist",
|
|
|
|
"-Ssometext",
|
|
|
|
])
|
|
|
|
d = self.create_distribution()
|
|
|
|
# let's actually try to load our test command:
|
|
|
|
self.assertEqual(d.get_command_packages(),
|
|
|
|
["distutils.command", "foo.bar", "distutils.tests"])
|
|
|
|
cmd = d.get_command_obj("test_dist")
|
2011-09-09 20:34:44 -03:00
|
|
|
self.assertIsInstance(cmd, test_dist)
|
2004-08-03 13:37:40 -03:00
|
|
|
self.assertEqual(cmd.sample_option, "sometext")
|
|
|
|
|
2013-05-12 07:36:07 -03:00
|
|
|
def test_venv_install_options(self):
|
|
|
|
sys.argv.append("install")
|
|
|
|
self.addCleanup(os.unlink, TESTFN)
|
|
|
|
|
|
|
|
fakepath = '/somedir'
|
|
|
|
|
|
|
|
with open(TESTFN, "w") as f:
|
|
|
|
print(("[install]\n"
|
|
|
|
"install-base = {0}\n"
|
|
|
|
"install-platbase = {0}\n"
|
|
|
|
"install-lib = {0}\n"
|
|
|
|
"install-platlib = {0}\n"
|
|
|
|
"install-purelib = {0}\n"
|
|
|
|
"install-headers = {0}\n"
|
|
|
|
"install-scripts = {0}\n"
|
|
|
|
"install-data = {0}\n"
|
|
|
|
"prefix = {0}\n"
|
|
|
|
"exec-prefix = {0}\n"
|
|
|
|
"home = {0}\n"
|
|
|
|
"user = {0}\n"
|
|
|
|
"root = {0}").format(fakepath), file=f)
|
|
|
|
|
|
|
|
# Base case: Not in a Virtual Environment
|
|
|
|
with mock.patch.multiple(sys, prefix='/a', base_prefix='/a') as values:
|
|
|
|
d = self.create_distribution([TESTFN])
|
|
|
|
|
|
|
|
option_tuple = (TESTFN, fakepath)
|
|
|
|
|
|
|
|
result_dict = {
|
|
|
|
'install_base': option_tuple,
|
|
|
|
'install_platbase': option_tuple,
|
|
|
|
'install_lib': option_tuple,
|
|
|
|
'install_platlib': option_tuple,
|
|
|
|
'install_purelib': option_tuple,
|
|
|
|
'install_headers': option_tuple,
|
|
|
|
'install_scripts': option_tuple,
|
|
|
|
'install_data': option_tuple,
|
|
|
|
'prefix': option_tuple,
|
|
|
|
'exec_prefix': option_tuple,
|
|
|
|
'home': option_tuple,
|
|
|
|
'user': option_tuple,
|
|
|
|
'root': option_tuple,
|
|
|
|
}
|
|
|
|
|
|
|
|
self.assertEqual(
|
|
|
|
sorted(d.command_options.get('install').keys()),
|
|
|
|
sorted(result_dict.keys()))
|
|
|
|
|
|
|
|
for (key, value) in d.command_options.get('install').items():
|
|
|
|
self.assertEqual(value, result_dict[key])
|
|
|
|
|
|
|
|
# Test case: In a Virtual Environment
|
|
|
|
with mock.patch.multiple(sys, prefix='/a', base_prefix='/b') as values:
|
|
|
|
d = self.create_distribution([TESTFN])
|
|
|
|
|
|
|
|
for key in result_dict.keys():
|
|
|
|
self.assertNotIn(key, d.command_options.get('install', {}))
|
|
|
|
|
2004-08-03 13:37:40 -03:00
|
|
|
def test_command_packages_configfile(self):
|
|
|
|
sys.argv.append("build")
|
2010-11-05 20:51:56 -03:00
|
|
|
self.addCleanup(os.unlink, TESTFN)
|
2004-08-03 13:37:40 -03:00
|
|
|
f = open(TESTFN, "w")
|
|
|
|
try:
|
2007-02-09 01:37:30 -04:00
|
|
|
print("[global]", file=f)
|
|
|
|
print("command_packages = foo.bar, splat", file=f)
|
2010-11-05 20:51:56 -03:00
|
|
|
finally:
|
2004-08-03 13:37:40 -03:00
|
|
|
f.close()
|
|
|
|
|
2010-11-05 20:51:56 -03:00
|
|
|
d = self.create_distribution([TESTFN])
|
|
|
|
self.assertEqual(d.get_command_packages(),
|
|
|
|
["distutils.command", "foo.bar", "splat"])
|
|
|
|
|
|
|
|
# ensure command line overrides config:
|
|
|
|
sys.argv[1:] = ["--command-packages", "spork", "build"]
|
|
|
|
d = self.create_distribution([TESTFN])
|
|
|
|
self.assertEqual(d.get_command_packages(),
|
|
|
|
["distutils.command", "spork"])
|
|
|
|
|
|
|
|
# Setting --command-packages to '' should cause the default to
|
|
|
|
# be used even if a config file specified something else:
|
|
|
|
sys.argv[1:] = ["--command-packages", "", "build"]
|
|
|
|
d = self.create_distribution([TESTFN])
|
|
|
|
self.assertEqual(d.get_command_packages(), ["distutils.command"])
|
2004-08-03 13:37:40 -03:00
|
|
|
|
2008-12-29 18:38:38 -04:00
|
|
|
def test_empty_options(self):
|
|
|
|
# an empty options dictionary should not stay in the
|
|
|
|
# list of attributes
|
|
|
|
|
|
|
|
# catching warnings
|
|
|
|
warns = []
|
2011-09-09 20:34:44 -03:00
|
|
|
|
2008-12-29 18:38:38 -04:00
|
|
|
def _warn(msg):
|
|
|
|
warns.append(msg)
|
|
|
|
|
2011-09-09 20:34:44 -03:00
|
|
|
self.addCleanup(setattr, warnings, 'warn', warnings.warn)
|
2008-12-29 18:38:38 -04:00
|
|
|
warnings.warn = _warn
|
2011-09-09 20:34:44 -03:00
|
|
|
dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx',
|
|
|
|
'version': 'xxx', 'url': 'xxxx',
|
|
|
|
'options': {}})
|
2008-12-29 18:38:38 -04:00
|
|
|
|
2010-11-20 15:04:17 -04:00
|
|
|
self.assertEqual(len(warns), 0)
|
2011-09-09 20:34:44 -03:00
|
|
|
self.assertNotIn('options', dir(dist))
|
2008-12-29 18:38:38 -04:00
|
|
|
|
2009-06-01 19:36:26 -03:00
|
|
|
def test_finalize_options(self):
|
|
|
|
attrs = {'keywords': 'one,two',
|
|
|
|
'platforms': 'one,two'}
|
|
|
|
|
|
|
|
dist = Distribution(attrs=attrs)
|
|
|
|
dist.finalize_options()
|
|
|
|
|
|
|
|
# finalize_option splits platforms and keywords
|
2010-11-20 15:04:17 -04:00
|
|
|
self.assertEqual(dist.metadata.platforms, ['one', 'two'])
|
|
|
|
self.assertEqual(dist.metadata.keywords, ['one', 'two'])
|
2009-06-01 19:36:26 -03:00
|
|
|
|
|
|
|
def test_get_command_packages(self):
|
|
|
|
dist = Distribution()
|
2010-11-20 15:04:17 -04:00
|
|
|
self.assertEqual(dist.command_packages, None)
|
2009-06-01 19:36:26 -03:00
|
|
|
cmds = dist.get_command_packages()
|
2010-11-20 15:04:17 -04:00
|
|
|
self.assertEqual(cmds, ['distutils.command'])
|
|
|
|
self.assertEqual(dist.command_packages,
|
|
|
|
['distutils.command'])
|
2009-06-01 19:36:26 -03:00
|
|
|
|
|
|
|
dist.command_packages = 'one,two'
|
|
|
|
cmds = dist.get_command_packages()
|
2010-11-20 15:04:17 -04:00
|
|
|
self.assertEqual(cmds, ['distutils.command', 'one', 'two'])
|
2009-06-01 19:36:26 -03:00
|
|
|
|
2009-09-21 10:55:19 -03:00
|
|
|
def test_announce(self):
|
|
|
|
# make sure the level is known
|
|
|
|
dist = Distribution()
|
|
|
|
args = ('ok',)
|
|
|
|
kwargs = {'level': 'ok2'}
|
|
|
|
self.assertRaises(ValueError, dist.announce, args, kwargs)
|
|
|
|
|
2011-09-09 20:34:44 -03:00
|
|
|
|
2013-11-10 19:11:00 -04:00
|
|
|
def test_find_config_files_disable(self):
|
|
|
|
# Ticket #1180: Allow user to disable their home config file.
|
|
|
|
temp_home = self.mkdtemp()
|
|
|
|
if os.name == 'posix':
|
|
|
|
user_filename = os.path.join(temp_home, ".pydistutils.cfg")
|
|
|
|
else:
|
|
|
|
user_filename = os.path.join(temp_home, "pydistutils.cfg")
|
|
|
|
|
|
|
|
with open(user_filename, 'w') as f:
|
|
|
|
f.write('[distutils]\n')
|
|
|
|
|
|
|
|
def _expander(path):
|
|
|
|
return temp_home
|
|
|
|
|
|
|
|
old_expander = os.path.expanduser
|
|
|
|
os.path.expanduser = _expander
|
|
|
|
try:
|
|
|
|
d = Distribution()
|
|
|
|
all_files = d.find_config_files()
|
|
|
|
|
|
|
|
d = Distribution(attrs={'script_args': ['--no-user-cfg']})
|
|
|
|
files = d.find_config_files()
|
|
|
|
finally:
|
|
|
|
os.path.expanduser = old_expander
|
|
|
|
|
|
|
|
# make sure --no-user-cfg disables the user cfg file
|
2013-11-15 20:38:51 -04:00
|
|
|
self.assertEqual(len(all_files)-1, len(files))
|
2013-11-10 19:11:00 -04:00
|
|
|
|
2009-05-10 09:20:44 -03:00
|
|
|
class MetadataTestCase(support.TempdirManager, support.EnvironGuard,
|
|
|
|
unittest.TestCase):
|
2005-03-20 18:19:47 -04:00
|
|
|
|
2009-10-18 08:34:51 -03:00
|
|
|
def setUp(self):
|
|
|
|
super(MetadataTestCase, self).setUp()
|
|
|
|
self.argv = sys.argv, sys.argv[:]
|
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
sys.argv = self.argv[0]
|
|
|
|
sys.argv[:] = self.argv[1]
|
|
|
|
super(MetadataTestCase, self).tearDown()
|
|
|
|
|
2011-09-09 20:34:44 -03:00
|
|
|
def format_metadata(self, dist):
|
|
|
|
sio = io.StringIO()
|
|
|
|
dist.metadata.write_pkg_file(sio)
|
|
|
|
return sio.getvalue()
|
|
|
|
|
2005-03-20 18:19:47 -04:00
|
|
|
def test_simple_metadata(self):
|
|
|
|
attrs = {"name": "package",
|
|
|
|
"version": "1.0"}
|
2009-05-17 07:50:24 -03:00
|
|
|
dist = Distribution(attrs)
|
2005-03-20 18:19:47 -04:00
|
|
|
meta = self.format_metadata(dist)
|
2011-09-09 20:34:44 -03:00
|
|
|
self.assertIn("Metadata-Version: 1.0", meta)
|
|
|
|
self.assertNotIn("provides:", meta.lower())
|
|
|
|
self.assertNotIn("requires:", meta.lower())
|
|
|
|
self.assertNotIn("obsoletes:", meta.lower())
|
2005-03-20 18:19:47 -04:00
|
|
|
|
|
|
|
def test_provides(self):
|
|
|
|
attrs = {"name": "package",
|
|
|
|
"version": "1.0",
|
|
|
|
"provides": ["package", "package.sub"]}
|
2009-05-17 07:50:24 -03:00
|
|
|
dist = Distribution(attrs)
|
2005-03-20 18:19:47 -04:00
|
|
|
self.assertEqual(dist.metadata.get_provides(),
|
|
|
|
["package", "package.sub"])
|
|
|
|
self.assertEqual(dist.get_provides(),
|
|
|
|
["package", "package.sub"])
|
|
|
|
meta = self.format_metadata(dist)
|
2011-09-09 20:34:44 -03:00
|
|
|
self.assertIn("Metadata-Version: 1.1", meta)
|
|
|
|
self.assertNotIn("requires:", meta.lower())
|
|
|
|
self.assertNotIn("obsoletes:", meta.lower())
|
2005-03-20 18:19:47 -04:00
|
|
|
|
|
|
|
def test_provides_illegal(self):
|
2009-05-17 07:50:24 -03:00
|
|
|
self.assertRaises(ValueError, Distribution,
|
2005-03-20 18:19:47 -04:00
|
|
|
{"name": "package",
|
|
|
|
"version": "1.0",
|
|
|
|
"provides": ["my.pkg (splat)"]})
|
|
|
|
|
|
|
|
def test_requires(self):
|
|
|
|
attrs = {"name": "package",
|
|
|
|
"version": "1.0",
|
|
|
|
"requires": ["other", "another (==1.0)"]}
|
2009-05-17 07:50:24 -03:00
|
|
|
dist = Distribution(attrs)
|
2005-03-20 18:19:47 -04:00
|
|
|
self.assertEqual(dist.metadata.get_requires(),
|
|
|
|
["other", "another (==1.0)"])
|
|
|
|
self.assertEqual(dist.get_requires(),
|
|
|
|
["other", "another (==1.0)"])
|
|
|
|
meta = self.format_metadata(dist)
|
2011-09-09 20:34:44 -03:00
|
|
|
self.assertIn("Metadata-Version: 1.1", meta)
|
|
|
|
self.assertNotIn("provides:", meta.lower())
|
|
|
|
self.assertIn("Requires: other", meta)
|
|
|
|
self.assertIn("Requires: another (==1.0)", meta)
|
|
|
|
self.assertNotIn("obsoletes:", meta.lower())
|
2005-03-20 18:19:47 -04:00
|
|
|
|
|
|
|
def test_requires_illegal(self):
|
2009-05-17 07:50:24 -03:00
|
|
|
self.assertRaises(ValueError, Distribution,
|
2005-03-20 18:19:47 -04:00
|
|
|
{"name": "package",
|
|
|
|
"version": "1.0",
|
|
|
|
"requires": ["my.pkg (splat)"]})
|
|
|
|
|
|
|
|
def test_obsoletes(self):
|
|
|
|
attrs = {"name": "package",
|
|
|
|
"version": "1.0",
|
|
|
|
"obsoletes": ["other", "another (<1.0)"]}
|
2009-05-17 07:50:24 -03:00
|
|
|
dist = Distribution(attrs)
|
2005-03-20 18:19:47 -04:00
|
|
|
self.assertEqual(dist.metadata.get_obsoletes(),
|
|
|
|
["other", "another (<1.0)"])
|
|
|
|
self.assertEqual(dist.get_obsoletes(),
|
|
|
|
["other", "another (<1.0)"])
|
|
|
|
meta = self.format_metadata(dist)
|
2011-09-09 20:34:44 -03:00
|
|
|
self.assertIn("Metadata-Version: 1.1", meta)
|
|
|
|
self.assertNotIn("provides:", meta.lower())
|
|
|
|
self.assertNotIn("requires:", meta.lower())
|
|
|
|
self.assertIn("Obsoletes: other", meta)
|
|
|
|
self.assertIn("Obsoletes: another (<1.0)", meta)
|
2005-03-20 18:19:47 -04:00
|
|
|
|
|
|
|
def test_obsoletes_illegal(self):
|
2009-05-17 07:50:24 -03:00
|
|
|
self.assertRaises(ValueError, Distribution,
|
2005-03-20 18:19:47 -04:00
|
|
|
{"name": "package",
|
|
|
|
"version": "1.0",
|
|
|
|
"obsoletes": ["my.pkg (splat)"]})
|
2005-03-27 21:08:02 -04:00
|
|
|
|
2011-09-09 20:51:40 -03:00
|
|
|
def test_classifier(self):
|
|
|
|
attrs = {'name': 'Boa', 'version': '3.0',
|
|
|
|
'classifiers': ['Programming Language :: Python :: 3']}
|
|
|
|
dist = Distribution(attrs)
|
|
|
|
meta = self.format_metadata(dist)
|
|
|
|
self.assertIn('Metadata-Version: 1.1', meta)
|
|
|
|
|
|
|
|
def test_download_url(self):
|
|
|
|
attrs = {'name': 'Boa', 'version': '3.0',
|
|
|
|
'download_url': 'http://example.org/boa'}
|
|
|
|
dist = Distribution(attrs)
|
|
|
|
meta = self.format_metadata(dist)
|
|
|
|
self.assertIn('Metadata-Version: 1.1', meta)
|
|
|
|
|
2011-09-09 20:34:44 -03:00
|
|
|
def test_long_description(self):
|
|
|
|
long_desc = textwrap.dedent("""\
|
|
|
|
example::
|
|
|
|
We start here
|
|
|
|
and continue here
|
|
|
|
and end here.""")
|
|
|
|
attrs = {"name": "package",
|
|
|
|
"version": "1.0",
|
|
|
|
"long_description": long_desc}
|
|
|
|
|
|
|
|
dist = Distribution(attrs)
|
|
|
|
meta = self.format_metadata(dist)
|
|
|
|
meta = meta.replace('\n' + 8 * ' ', '\n')
|
|
|
|
self.assertIn(long_desc, meta)
|
2005-03-20 18:19:47 -04:00
|
|
|
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
def test_custom_pydistutils(self):
|
|
|
|
# fixes #2166
|
|
|
|
# make sure pydistutils.cfg is found
|
|
|
|
if os.name == 'posix':
|
|
|
|
user_filename = ".pydistutils.cfg"
|
|
|
|
else:
|
|
|
|
user_filename = "pydistutils.cfg"
|
|
|
|
|
2009-02-14 10:35:51 -04:00
|
|
|
temp_dir = self.mkdtemp()
|
|
|
|
user_filename = os.path.join(temp_dir, user_filename)
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
f = open(user_filename, 'w')
|
2010-11-05 20:51:56 -03:00
|
|
|
try:
|
|
|
|
f.write('.')
|
|
|
|
finally:
|
|
|
|
f.close()
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
|
|
|
|
try:
|
2009-05-17 07:50:24 -03:00
|
|
|
dist = Distribution()
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
|
|
|
|
# linux-style
|
|
|
|
if sys.platform in ('linux', 'darwin'):
|
2009-10-18 08:34:51 -03:00
|
|
|
os.environ['HOME'] = temp_dir
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
files = dist.find_config_files()
|
2011-09-09 20:34:44 -03:00
|
|
|
self.assertIn(user_filename, files)
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
|
|
|
|
# win32-style
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
# home drive should be found
|
2009-10-18 08:34:51 -03:00
|
|
|
os.environ['HOME'] = temp_dir
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
files = dist.find_config_files()
|
2011-09-09 20:34:44 -03:00
|
|
|
self.assertIn(user_filename, files,
|
2013-05-12 07:36:07 -03:00
|
|
|
'%r not found in %r' % (user_filename, files))
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
finally:
|
|
|
|
os.remove(user_filename)
|
2005-03-20 18:19:47 -04:00
|
|
|
|
2009-05-17 07:50:24 -03:00
|
|
|
def test_fix_help_options(self):
|
|
|
|
help_tuples = [('a', 'b', 'c', 'd'), (1, 2, 3, 4)]
|
|
|
|
fancy_options = fix_help_options(help_tuples)
|
2010-11-20 15:04:17 -04:00
|
|
|
self.assertEqual(fancy_options[0], ('a', 'b', 'c'))
|
|
|
|
self.assertEqual(fancy_options[1], (1, 2, 3))
|
2009-05-17 07:50:24 -03:00
|
|
|
|
|
|
|
def test_show_help(self):
|
|
|
|
# smoke test, just makes sure some help is displayed
|
|
|
|
dist = Distribution()
|
|
|
|
sys.argv = []
|
2009-10-18 08:34:51 -03:00
|
|
|
dist.help = 1
|
|
|
|
dist.script_name = 'setup.py'
|
|
|
|
with captured_stdout() as s:
|
|
|
|
dist.parse_command_line()
|
2009-05-17 07:50:24 -03:00
|
|
|
|
|
|
|
output = [line for line in s.getvalue().split('\n')
|
|
|
|
if line.strip() != '']
|
2011-09-09 20:34:44 -03:00
|
|
|
self.assertTrue(output)
|
2009-12-06 05:28:17 -04:00
|
|
|
|
|
|
|
|
2013-11-10 19:15:03 -04:00
|
|
|
def test_read_metadata(self):
|
|
|
|
attrs = {"name": "package",
|
|
|
|
"version": "1.0",
|
|
|
|
"long_description": "desc",
|
|
|
|
"description": "xxx",
|
|
|
|
"download_url": "http://example.com",
|
|
|
|
"keywords": ['one', 'two'],
|
|
|
|
"requires": ['foo']}
|
|
|
|
|
|
|
|
dist = Distribution(attrs)
|
|
|
|
metadata = dist.metadata
|
|
|
|
|
|
|
|
# write it then reloads it
|
|
|
|
PKG_INFO = io.StringIO()
|
|
|
|
metadata.write_pkg_file(PKG_INFO)
|
|
|
|
PKG_INFO.seek(0)
|
|
|
|
metadata.read_pkg_file(PKG_INFO)
|
|
|
|
|
2013-11-15 20:38:51 -04:00
|
|
|
self.assertEqual(metadata.name, "package")
|
|
|
|
self.assertEqual(metadata.version, "1.0")
|
|
|
|
self.assertEqual(metadata.description, "xxx")
|
|
|
|
self.assertEqual(metadata.download_url, 'http://example.com')
|
|
|
|
self.assertEqual(metadata.keywords, ['one', 'two'])
|
|
|
|
self.assertEqual(metadata.platforms, ['UNKNOWN'])
|
|
|
|
self.assertEqual(metadata.obsoletes, None)
|
|
|
|
self.assertEqual(metadata.requires, ['foo'])
|
2013-11-10 19:15:03 -04:00
|
|
|
|
2004-08-03 13:37:40 -03:00
|
|
|
def test_suite():
|
2005-03-20 18:19:47 -04:00
|
|
|
suite = unittest.TestSuite()
|
|
|
|
suite.addTest(unittest.makeSuite(DistributionTestCase))
|
|
|
|
suite.addTest(unittest.makeSuite(MetadataTestCase))
|
|
|
|
return suite
|
Merged revisions 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines
#1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
........
r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines
Cleaned up io._BytesIO.write().
I am amazed that the old code, for inserting null-bytes, actually
worked. Who wrote that thing? Oh, it is me... doh.
........
r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines
Revert r62998 as it broke the build (seems distutils.config is missing).
........
r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line
#1858: add distutils.config module
........
r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines
Flesh out the 3.0 deprecation to suggest using the ctypes module.
........
r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines
Copied two versions of the example from the interactive session. Delete
one.
........
r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines
reload() takes the module itself.
........
r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines
Added test framework for handling module renames.
Factored the import guard in test_py3kwarn.TestStdlibRemovals into
a context manager, namely test_support.CleanImport.
........
r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines
#2742: ``''`` is not converted to NULL in getaddrinfo.
........
r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines
Fixed typo in a comment of test_support.CleanImport.
........
r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines
Removed a dead line of code.
........
r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines
#2812: document property.getter/setter/deleter.
........
r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines
#1153769: document PEP 237 changes to string formatting.
........
r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines
#2809: elaborate str.split docstring a bit.
........
r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines
Fix typo.
........
r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines
#2709: clarification.
........
r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines
#2659: add ``break_on_hyphens`` to TextWrapper.
........
r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines
#2741: clarification of value range for address_family.
........
r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines
#2452: timeout is used for all blocking operations.
........
r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines
#1792: Improve performance of marshal.dumps() on large objects by increasing
the size of the buffer more quickly.
........
r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line
#1858: re-apply patch for this, adding the missing files
........
r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines
Add the "until" command to pdb
........
r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines
Add some sentence endings.
........
2008-05-15 21:03:33 -03:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2010-11-05 23:44:43 -03:00
|
|
|
run_unittest(test_suite())
|