mirror of
https://github.com/clearml/wexpect-venv
synced 2025-02-12 07:38:23 +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.
|
# Upload to pypi.
|
||||||
# More precisely. Upload pypi the master builds, and to test-pypi any other builds.
|
# 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 ( \
|
- git branch | find "* master" > NUL & IF ERRORLEVEL 1 ( \
|
||||||
twine upload -r testpypi dist\\wexpect*.tar.gz \
|
twine upload -r testpypi dist\\wexpect*.tar.gz \
|
||||||
) ELSE ( \
|
) ELSE ( \
|
||||||
|
@ -2071,12 +2071,12 @@ class Wtty:
|
|||||||
logging.info(e)
|
logging.info(e)
|
||||||
# In case of any error: We "switch back" (attach) our original console, then raise the
|
# In case of any error: We "switch back" (attach) our original console, then raise the
|
||||||
# error.
|
# error.
|
||||||
win32console.AttachConsole(self.__parentPid)
|
self.switchBack()
|
||||||
raise EOF('End Of File (EOF) in switchTo().')
|
raise EOF('End Of File (EOF) in switchTo().')
|
||||||
except:
|
except:
|
||||||
# In case of any error: We "switch back" (attach) our original console, then raise the
|
# In case of any error: We "switch back" (attach) our original console, then raise the
|
||||||
# error.
|
# error.
|
||||||
win32console.AttachConsole(self.__parentPid)
|
self.switchBack()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user