From 3337d638d1dfcaaec5135903bac3187e56ee4ffc Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 17 Jan 2014 01:02:50 +0100 Subject: [PATCH] fix some colorama/pytest combo crazyness --- jedi/debug.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jedi/debug.py b/jedi/debug.py index 9ad1d8a0..0d774ed5 100644 --- a/jedi/debug.py +++ b/jedi/debug.py @@ -10,6 +10,10 @@ try: else: # Use colorama for nicer console output. 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() except ImportError: class Fore(object):