Issue #25523: Further a-to-an corrections new in 3.5

This commit is contained in:
Martin Panter 2015-11-02 04:20:33 +00:00
parent 2eb819f7a8
commit d2ad5718ad
8 changed files with 10 additions and 10 deletions

View file

@ -456,7 +456,7 @@ class ProcessPoolExecutor(_base.Executor):
submit.__doc__ = _base.Executor.submit.__doc__
def map(self, fn, *iterables, timeout=None, chunksize=1):
"""Returns a iterator equivalent to map(fn, iter).
"""Returns an iterator equivalent to map(fn, iter).
Args:
fn: A callable that will take as many arguments as there are

View file

@ -34,7 +34,7 @@ def _int_to_enum(value, enum_klass):
def _enum_to_int(value):
"""Convert an IntEnum member to a numeric value.
If it's not a IntEnum member return the value itself.
If it's not an IntEnum member return the value itself.
"""
try:
return int(value)

View file

@ -255,12 +255,12 @@ class TestDiscovery(unittest.TestCase):
self.addCleanup(sys.path.remove, abspath('/foo'))
# Test data: we expect the following:
# a listdir to find our package, and a isfile and isdir check on it.
# a listdir to find our package, and isfile and isdir checks on it.
# a module-from-name call to turn that into a module
# followed by load_tests.
# then our load_tests will call discover() which is messy
# but that finally chains into find_tests again for the child dir -
# which is why we don't have a infinite loop.
# which is why we don't have an infinite loop.
# We expect to see:
# the module load tests for both package and plain module called,
# and the plain module result nested by the package module load_tests