Merge "Fix python3 compat with debug_venv.py"
This commit is contained in:
commit
604e7f21f3
@ -14,6 +14,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import atexit
|
import atexit
|
||||||
import os
|
import os
|
||||||
|
import six
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ try:
|
|||||||
atexit.register(v.cleanUp)
|
atexit.register(v.cleanUp)
|
||||||
v.setUp()
|
v.setUp()
|
||||||
except fixture.MultipleExceptions as e:
|
except fixture.MultipleExceptions as e:
|
||||||
raise e.args[0][0], e.args[0][1], e.args[0][2]
|
six.reraise(*e.args[0])
|
||||||
try:
|
try:
|
||||||
print("*** Exit the shell when finished debugging ***")
|
print("*** Exit the shell when finished debugging ***")
|
||||||
subprocess.call([os.getenv('SHELL'), '-i'], env=v.env)
|
subprocess.call([os.getenv('SHELL'), '-i'], env=v.env)
|
||||||
|
Loading…
Reference in New Issue
Block a user