Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
aa5dcd89
Commit
aa5dcd89
authored
Dec 11, 2015
by
Martin Panter
Browse files
Options
Browse Files
Download
Plain Diff
Issue #25764: Merge fix for root user from 3.5
parents
70fe09bc
5cf791b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_subprocess.py
Lib/test/test_subprocess.py
+6
-2
No files found.
Lib/test/test_subprocess.py
View file @
aa5dcd89
...
...
@@ -1525,10 +1525,14 @@ class POSIXProcessTestCase(BaseTestCase):
[
_
,
hard
]
=
limits
setrlimit
(
RLIMIT_NPROC
,
(
0
,
hard
))
self
.
addCleanup
(
setrlimit
,
RLIMIT_NPROC
,
limits
)
# Forking should raise EAGAIN, translated to BlockingIOError
with
self
.
assertRaises
(
BlockingIOError
):
try
:
subprocess
.
call
([
sys
.
executable
,
'-c'
,
''
],
preexec_fn
=
lambda
:
None
)
except
BlockingIOError
:
# Forking should raise EAGAIN, translated to BlockingIOError
pass
else
:
self
.
skipTest
(
'RLIMIT_NPROC had no effect; probably superuser'
)
def
test_args_string
(
self
):
# args is a string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment