Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
c9f69bc3
Commit
c9f69bc3
authored
Jul 05, 2016
by
Wenzel Jakob
Committed by
GitHub
Jul 05, 2016
Browse files
Merge pull request #266 from jagerman/fix-python27-test-output
Fix test diff output under python2.7
parents
3b48482f
f23e0b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
example/run_test.py
example/run_test.py
+2
-2
No files found.
example/run_test.py
View file @
c9f69bc3
...
@@ -68,6 +68,6 @@ else:
...
@@ -68,6 +68,6 @@ else:
print
(
'Test "%s" FAILED!'
%
name
)
print
(
'Test "%s" FAILED!'
%
name
)
print
(
'--- output'
)
print
(
'--- output'
)
print
(
'+++ reference'
)
print
(
'+++ reference'
)
print
(
''
.
join
(
difflib
.
ndiff
(
output
.
splitlines
(
keepends
=
True
),
print
(
'
\n
'
.
join
(
difflib
.
ndiff
(
output
.
splitlines
(),
reference
.
splitlines
(
keepends
=
True
))))
reference
.
splitlines
())))
exit
(
-
1
)
exit
(
-
1
)
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