Fix test not to fail on FreeBSD. Directories work also as data

files on the platform.
This commit is contained in:
Hye-Shik Chang 2005-12-13 17:06:45 +00:00
parent e237d50390
commit e2f8e3c14f
1 changed files with 4 additions and 0 deletions

View 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