diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2005-12-13 17:06:45 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2005-12-13 17:06:45 (GMT) |
commit | e2f8e3c14f6f17fe6541c926e69a5f01f1a91b9b (patch) | |
tree | a4ebd69119d999362e5e5c5ac76c28550daaafe1 /Lib/test/test_cmd_line.py | |
parent | e237d50390433a4d38944221a6c3280cc6940d9e (diff) | |
download | cpython-e2f8e3c14f6f17fe6541c926e69a5f01f1a91b9b.zip cpython-e2f8e3c14f6f17fe6541c926e69a5f01f1a91b9b.tar.gz cpython-e2f8e3c14f6f17fe6541c926e69a5f01f1a91b9b.tar.bz2 |
Fix test not to fail on FreeBSD. Directories work also as data
files on the platform.
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r-- | Lib/test/test_cmd_line.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |