mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
bpo-31904: Fix test_os.test_getcwd_long_path() failure for VxWorks (GH-20256)
This commit is contained in:
parent
d41ec65ab7
commit
aa1b8a168d
2 changed files with 5 additions and 0 deletions
|
|
@ -116,6 +116,10 @@ class MiscTests(unittest.TestCase):
|
||||||
# than MAX_PATH if long paths support is disabled:
|
# than MAX_PATH if long paths support is disabled:
|
||||||
# see RtlAreLongPathsEnabled().
|
# see RtlAreLongPathsEnabled().
|
||||||
min_len = 2000 # characters
|
min_len = 2000 # characters
|
||||||
|
# On VxWorks, PATH_MAX is defined as 1024 bytes. Creating a path
|
||||||
|
# longer than PATH_MAX will fail.
|
||||||
|
if sys.platform == 'vxworks':
|
||||||
|
min_len = 1000
|
||||||
dirlen = 200 # characters
|
dirlen = 200 # characters
|
||||||
dirname = 'python_test_dir_'
|
dirname = 'python_test_dir_'
|
||||||
dirname = dirname + ('a' * (dirlen - len(dirname)))
|
dirname = dirname + ('a' * (dirlen - len(dirname)))
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Fix os module failures for VxWorks RTOS.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue