mirror of
https://github.com/python/cpython.git
synced 2024-11-25 19:03:49 +08:00
Whitespace normalization.
This commit is contained in:
parent
c8d907c60b
commit
e890682e52
@ -35,7 +35,7 @@ class CompilerTest(unittest.TestCase):
|
||||
|
||||
def testNewClassSyntax(self):
|
||||
compiler.compile("class foo():pass\n\n","<string>","exec")
|
||||
|
||||
|
||||
def testLineNo(self):
|
||||
# Test that all nodes except Module have a correct lineno attribute.
|
||||
filename = __file__
|
||||
|
@ -129,7 +129,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
|
||||
|
||||
def test_class_defs(self):
|
||||
self.check_suite("class foo():pass")
|
||||
|
||||
|
||||
def test_import_from_statement(self):
|
||||
self.check_suite("from sys.path import *")
|
||||
self.check_suite("from sys.path import dirname")
|
||||
|
@ -57,7 +57,7 @@ class DocBuild(build):
|
||||
(self.doc_version,self.doc_version)
|
||||
tarfile = 'html-%s.tar.bz2' % self.doc_version
|
||||
dirname = 'Python-Docs-%s' % self.doc_version
|
||||
|
||||
|
||||
if os.path.exists(self.build_html):
|
||||
raise RuntimeError, '%s: already exists, please remove and try again' % self.build_html
|
||||
os.chdir(self.build_base)
|
||||
|
Loading…
Reference in New Issue
Block a user