mirror of
https://github.com/python/cpython.git
synced 2026-03-22 20:50:53 +00:00
merge 3.2
This commit is contained in:
commit
143d034ecd
14 changed files with 242 additions and 240 deletions
|
|
@ -595,8 +595,13 @@ def win32_ver(release='',version='',csd='',ptype=''):
|
|||
release = '7'
|
||||
else:
|
||||
release = '2008ServerR2'
|
||||
elif min == 2:
|
||||
if product_type == VER_NT_WORKSTATION:
|
||||
release = '8'
|
||||
else:
|
||||
release = '2012Server'
|
||||
else:
|
||||
release = 'post2008Server'
|
||||
release = 'post2012Server'
|
||||
|
||||
else:
|
||||
if not release:
|
||||
|
|
|
|||
|
|
@ -565,10 +565,10 @@ def test_encoding(self):
|
|||
with open(filename, 'w', encoding='latin1') as f:
|
||||
f.write("""
|
||||
#coding:latin1
|
||||
"non-ASCII: h\xe9"
|
||||
s = "non-ASCII: h\xe9"
|
||||
""")
|
||||
result = run_path(filename)
|
||||
self.assertEqual(result['__doc__'], "non-ASCII: h\xe9")
|
||||
self.assertEqual(result['s'], "non-ASCII: h\xe9")
|
||||
|
||||
|
||||
def test_main():
|
||||
|
|
|
|||
|
|
@ -250,6 +250,7 @@ def test_main_negative_reps(self):
|
|||
s = self.run_main(seconds_per_increment=60.0, switches=['-r-5'])
|
||||
self.assertEqual(s, "10 loops, best of 1: 60 sec per loop\n")
|
||||
|
||||
@unittest.skipIf(sys.flags.optimize >= 2, "need __doc__")
|
||||
def test_main_help(self):
|
||||
s = self.run_main(switches=['-h'])
|
||||
# Note: It's not clear that the trailing space was intended as part of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue