]> granicus.if.org Git - python/commitdiff
Fix test not to fail on FreeBSD. Directories work also as data
authorHye-Shik Chang <hyeshik@gmail.com>
Tue, 13 Dec 2005 17:06:45 +0000 (17:06 +0000)
committerHye-Shik Chang <hyeshik@gmail.com>
Tue, 13 Dec 2005 17:06:45 +0000 (17:06 +0000)
files on the platform.

Lib/test/test_cmd_line.py

index 43c2ddd30216133cc053ae7fcf85d714491d2326..2d293c90cb28ee9986248335634ef45f9187fb07 100644 (file)
@@ -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