[Python-checkins] commit of r41663 - python/trunk/Lib/test/test_cmd_line.py
hyeshik.chang
python-checkins at python.org
Tue Dec 13 18:06:45 CET 2005
Author: hyeshik.chang
Date: Tue Dec 13 18:06:45 2005
New Revision: 41663
Modified:
python/trunk/Lib/test/test_cmd_line.py
Log:
Fix test not to fail on FreeBSD. Directories work also as data
files on the platform.
Modified: python/trunk/Lib/test/test_cmd_line.py
==============================================================================
--- python/trunk/Lib/test/test_cmd_line.py (original)
+++ python/trunk/Lib/test/test_cmd_line.py Tue Dec 13 18:06:45 2005
@@ -19,6 +19,10 @@
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
More information about the Python-checkins
mailing list