STINNER Victor <[EMAIL PROTECTED]> added the comment: ocean-city testcase is invalid: it uses subprocess.call() which returns the exit code, not the Python error line number! Here is a better testcase using subprocess.Popen() checking the line number but also the display line. It tests ASCII, UTF-8 and GBK charsets. Using GBK charset, you get the bug described by ocean-city (problem with multibyte charset). My testcase takes also care of script with # coding at the second line.
Added file: http://bugs.python.org/file11609/test_traceback-gbk.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2384> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com