mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-27 02:52:18 +08:00
fix some colorama/pytest combo crazyness
This commit is contained in:
@@ -10,6 +10,10 @@ try:
|
|||||||
else:
|
else:
|
||||||
# Use colorama for nicer console output.
|
# Use colorama for nicer console output.
|
||||||
from colorama import Fore, init
|
from colorama import Fore, init
|
||||||
|
from colorama import initialise
|
||||||
|
# pytest resets the stream at the end - causes troubles. Since after
|
||||||
|
# every output the stream is reset automatically we don't need this.
|
||||||
|
initialise.atexit_done = True
|
||||||
init()
|
init()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
class Fore(object):
|
class Fore(object):
|
||||||
|
|||||||
Reference in New Issue
Block a user