Commit e2f8e3c1 authored by Hye-Shik Chang's avatar Hye-Shik Chang

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

files on the platform.
parent e237d503
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment