[issue10206] python program starting with unmatched quote spews spaces to stdout

Francisco Martín Brugué report at bugs.python.org
Fri Jun 24 17:49:32 CEST 2011


Francisco Martín Brugué <francismb at email.de> added the comment:

I've attached an alternative test case.

I'm not sure if there is a more robust way to test:
self.assert_('SyntaxError' in err.decode('ascii', 'ignore'))

Due the use of 'SyntaxtError' directly as string. I would prefer something like str(SyntaxtError) (or just the name of the exception
without extra text)

Review is welcome

----------
nosy: +francismb
Added file: http://bugs.python.org/file22441/issue10206.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10206>
_______________________________________


More information about the Python-bugs-list mailing list