summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_cmd_line.py4
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