mirror of
https://github.com/clearml/wexpect-venv
synced 2025-02-07 05:20:52 +00:00
[FIX] switchTo and add swithcBack
This commit is contained in:
parent
0b1dec9535
commit
0f2467f30c
@ -41,6 +41,7 @@ after_test:
|
||||
|
||||
# Upload to pypi.
|
||||
# More precisely. Upload pypi the master builds, and to test-pypi any other builds.
|
||||
# See more at https://stackoverflow.com/a/33662275/2506522
|
||||
- git branch | find "* master" > NUL & IF ERRORLEVEL 1 ( \
|
||||
twine upload -r testpypi dist\\wexpect*.tar.gz \
|
||||
) ELSE ( \
|
||||
|
@ -2071,12 +2071,12 @@ class Wtty:
|
||||
logging.info(e)
|
||||
# In case of any error: We "switch back" (attach) our original console, then raise the
|
||||
# error.
|
||||
win32console.AttachConsole(self.__parentPid)
|
||||
self.switchBack()
|
||||
raise EOF('End Of File (EOF) in switchTo().')
|
||||
except:
|
||||
# In case of any error: We "switch back" (attach) our original console, then raise the
|
||||
# error.
|
||||
win32console.AttachConsole(self.__parentPid)
|
||||
self.switchBack()
|
||||
raise
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user