Skip to content

Commit c485fbe

Browse files
pxinwradorilson
authored andcommitted
bpo-31904: Fix test_os.test_getcwd_long_path() failure for VxWorks (pythonGH-20256)
1 parent 7fc4e17 commit c485fbe

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Lib/test/test_os.py

+4
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ def test_getcwd_long_path(self):
116116
# than MAX_PATH if long paths support is disabled:
117117
# see RtlAreLongPathsEnabled().
118118
min_len = 2000 # characters
119+
# On VxWorks, PATH_MAX is defined as 1024 bytes. Creating a path
120+
# longer than PATH_MAX will fail.
121+
if sys.platform == 'vxworks':
122+
min_len = 1000
119123
dirlen = 200 # characters
120124
dirname = 'python_test_dir_'
121125
dirname = dirname + ('a' * (dirlen - len(dirname)))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix os module failures for VxWorks RTOS.

0 commit comments

Comments
 (0)