Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
1e821049
Commit
1e821049
authored
Nov 16, 2013
by
Luke Campagnola
Browse files
Fixed running `python examples --test` for python3; needs to be tested under windows.
parent
8d7ab108
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/__main__.py
View file @
1e821049
...
...
@@ -252,6 +252,7 @@ except:
else
:
process
=
subprocess
.
Popen
([
'exec %s -i'
%
(
exe
)],
shell
=
True
,
stdin
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
)
process
.
stdin
.
write
(
code
.
encode
(
'UTF-8'
))
process
.
stdin
.
close
()
##?
output
=
''
fail
=
False
while
True
:
...
...
@@ -266,8 +267,8 @@ except:
break
time
.
sleep
(
1
)
process
.
kill
()
#process.
wait
()
res
=
process
.
communicate
()
#
res =
process.
communicate
()
res
=
(
process
.
stdout
.
read
(),
process
.
stderr
.
read
()
)
if
fail
or
'exception'
in
res
[
1
].
decode
().
lower
()
or
'error'
in
res
[
1
].
decode
().
lower
():
print
(
'.'
*
(
50
-
len
(
name
))
+
'FAILED'
)
...
...
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