From 27b206cf0a05218b909cf9c88418570b6d573bae 2007-05-21 06:54:49 From: vivainio Date: 2007-05-21 06:54:49 Subject: [PATCH] dirname in term title now fails more gracefully --- diff --git a/IPython/platutils_win32.py b/IPython/platutils_win32.py index 61d3c55..4679326 100644 --- a/IPython/platutils_win32.py +++ b/IPython/platutils_win32.py @@ -28,8 +28,10 @@ def set_term_title(title): global ignore_termtitle - if not ignore_termtitle: - ret = os.system("title " + title) + if ignore_termtitle: + return + + ret = os.system("title " + title) if ret: ignore_termtitle = 1 diff --git a/test/test_handlers.py b/test/test_handlers.py index 0cf29ca..9f15656 100644 --- a/test/test_handlers.py +++ b/test/test_handlers.py @@ -2,6 +2,7 @@ from StringIO import StringIO import sys +sys.path.append('..') failures = [] num_tests = 0 diff --git a/test/test_prefilter.py b/test/test_prefilter.py index 69a622f..76d2f21 100644 --- a/test/test_prefilter.py +++ b/test/test_prefilter.py @@ -14,9 +14,9 @@ Fairly quiet output by default. Pass in -v to get everyone's favorite dots. # all of those out so that we can capture which one was called. import sys +sys.path.append('..') import IPython import IPython.ipapi -import sys verbose = False if len(sys.argv) > 1: