mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Whitespace normalization.
This commit is contained in:
parent
700f36c752
commit
eba28bea9b
14 changed files with 28 additions and 30 deletions
|
@ -93,7 +93,7 @@ resources to test. Currently only the following are defined:
|
|||
in the standard library and test suite. This takes
|
||||
a long time.
|
||||
|
||||
subprocess Run all tests for the subprocess module.
|
||||
subprocess Run all tests for the subprocess module.
|
||||
|
||||
To enable all resources except one, use '-uall,-<resource>'. For
|
||||
example, to run all the tests except for the bsddb tests, give the
|
||||
|
|
|
@ -139,7 +139,7 @@ class TestPartial(unittest.TestCase):
|
|||
self.assertEqual(join(data), '0123456789')
|
||||
join = self.thetype(''.join)
|
||||
self.assertEqual(join(data), '0123456789')
|
||||
|
||||
|
||||
class PartialSubclass(functional.partial):
|
||||
pass
|
||||
|
||||
|
|
|
@ -321,7 +321,7 @@ def test_both():
|
|||
f.close()
|
||||
|
||||
f = open(TESTFN, "rb+")
|
||||
mf = mmap.mmap(f.fileno(), 0)
|
||||
mf = mmap.mmap(f.fileno(), 0)
|
||||
verify(len(mf) == 2**16, "Map size should equal file size.")
|
||||
vereq(mf.read(2**16), 2**16 * "m")
|
||||
mf.close()
|
||||
|
@ -329,7 +329,7 @@ def test_both():
|
|||
|
||||
finally:
|
||||
os.unlink(TESTFN)
|
||||
|
||||
|
||||
# test mapping of entire file by passing 0 for map length
|
||||
if hasattr(os, "stat"):
|
||||
print " Ensuring that passing 0 as map length sets map size to current file size."
|
||||
|
@ -337,17 +337,17 @@ def test_both():
|
|||
try:
|
||||
f.write(2**16 * 'm') # Arbitrary character
|
||||
f.close()
|
||||
|
||||
|
||||
f = open(TESTFN, "rb+")
|
||||
mf = mmap.mmap(f.fileno(), 0)
|
||||
mf = mmap.mmap(f.fileno(), 0)
|
||||
verify(len(mf) == 2**16, "Map size should equal file size.")
|
||||
vereq(mf.read(2**16), 2**16 * "m")
|
||||
mf.close()
|
||||
f.close()
|
||||
|
||||
|
||||
finally:
|
||||
os.unlink(TESTFN)
|
||||
|
||||
|
||||
print ' Test passed'
|
||||
|
||||
test_both()
|
||||
|
|
|
@ -387,7 +387,7 @@ class ProcessTestCase(unittest.TestCase):
|
|||
if test_support.is_resource_enabled("subprocess") and not mswindows:
|
||||
max_handles = 1026 # too much for most UNIX systems
|
||||
else:
|
||||
max_handles = 65
|
||||
max_handles = 65
|
||||
for i in range(max_handles):
|
||||
p = subprocess.Popen([sys.executable, "-c",
|
||||
"import sys;sys.stdout.write(sys.stdin.read())"],
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import xdrlib
|
||||
|
||||
xdrlib._test()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue