You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Inside the docker used for testing (make docker-shell), if I run
the docs/basic/input.md examples, Python behaves weird.
$ byexample -l python --ff docs/basic/input.md
File "docs/basic/input.md", line 20
Failed example:
name = input("your name please: ") # byexample: +input
Expected:
your name please: [john]
Got:
your name please: [john]
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "<string>", line 1, in<module>
NameError: name 'john' is not defined
The example is:
>>>name=input("your name please: ") # byexample: +input yournameplease: [john]
byexample types john so the example does not timeout but
the interpreter then complains the john is not defined like
if we were typing Python code.
This happen only in the docker.
Is the john duplicated somehow and send to input(..)and
to the interpreter?
Is, in somehow, a newline being send before typing john
unblocking input(..) (name would be empty) and when byexample types john it goes directly to the interpreter?
Expected behavior
The interpreter should never receiver the text sent to the example.
byexample version
byexample 9.1.0 (Python 3.5.3)
The text was updated successfully, but these errors were encountered:
Describe the bug
Inside the docker used for testing (
make docker-shell
), if I runthe
docs/basic/input.md
examples, Python behaves weird.The example is:
byexample
typesjohn
so the example does not timeout butthe interpreter then complains the
john
is not defined likeif we were typing Python code.
This happen only in the docker.
Is the
john
duplicated somehow and send toinput(..)
andto the interpreter?
Is, in somehow, a newline being send before typing
john
unblocking
input(..)
(name
would be empty) and whenbyexample
typesjohn
it goes directly to the interpreter?Expected behavior
The interpreter should never receiver the text sent to the example.
byexample version
byexample 9.1.0 (Python 3.5.3)
The text was updated successfully, but these errors were encountered: