From e2f8e3c14f6f17fe6541c926e69a5f01f1a91b9b Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Tue, 13 Dec 2005 17:06:45 +0000 Subject: Fix test not to fail on FreeBSD. Directories work also as data files on the platform. --- Lib/test/test_cmd_line.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index 43c2ddd..2d293c9 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 -- cgit v0.12