From: Hye-Shik Chang Date: Tue, 13 Dec 2005 17:06:45 +0000 (+0000) Subject: Fix test not to fail on FreeBSD. Directories work also as data X-Git-Tag: v2.5a0~1044 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2f8e3c14f6f17fe6541c926e69a5f01f1a91b9b;p=thirdparty%2FPython%2Fcpython.git Fix test not to fail on FreeBSD. Directories work also as data files on the platform. --- diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index 43c2ddd30216..2d293c90cb28 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -19,6 +19,10 @@ class CmdLineTest(unittest.TestCase): if sys.platform == 'win32': # Exit code for "python .", Error 13: permission denied = 2 expected_exit_code = 2 + elif sys.platform.startswith('freebsd'): + # On FreeBSD, it more likely raise SyntaxError for binary + # directory data. + expected_exit_code = 1 else: # Linux has no problem with "python .", Exit code = 0 expected_exit_code = 0