Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
allworldit
python
forkedsubprocess
Commits
cc1ef853
Commit
cc1ef853
authored
Sep 26, 2019
by
Nigel Kukard
Browse files
tests: Improve tests as stderr and stdout may be returned in any order
parent
30a71b55
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_forkedsubprocess.py
View file @
cc1ef853
...
...
@@ -86,8 +86,10 @@ class TestForkedSubprocess():
process
.
run
()
process
.
wait
()
assert
process
.
output
==
[
'test stdout'
,
'test stderr'
],
\
'Our test strings ["test stdout", "test stderr"] should be returned in the .output property'
assert
'test stdout'
in
process
.
output
,
\
'Our test strings "test stdout" should be returned in the .output property'
assert
'test stderr'
in
process
.
output
,
\
'Our test strings "test stderr" should be returned in the .output property'
assert
process
.
stdout
==
[
'test stdout'
],
'Our test string "test stdout" should of been returned in the .stdout property'
assert
process
.
stderr
==
[
'test stderr'
],
'Our test string "test stderr" should of been returned in the .stderr property'
assert
process
.
stderr
==
[
'test stderr'
],
'Our test string "test stderr" should of been returned in the .stderr property'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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