mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #12326: don't test the major version of sys.platform
Use startswith, instead of ==, when testing sys.platform to support new platforms like Linux 3 or OpenBSD 5.
This commit is contained in:
parent
c77239613b
commit
9c3de4a883
8 changed files with 48 additions and 52 deletions
|
@ -20,7 +20,7 @@ has_spawnl = hasattr(os, 'spawnl')
|
|||
|
||||
# TEST_FILES may need to be tweaked for systems depending on the maximum
|
||||
# number of files that can be opened at one time (see ulimit -n)
|
||||
if sys.platform in ('openbsd3', 'openbsd4'):
|
||||
if sys.platform.startswith('openbsd'):
|
||||
TEST_FILES = 48
|
||||
else:
|
||||
TEST_FILES = 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue