From 6265ae29e0f25f866a80d838a3b006cf531820b3 Mon Sep 17 00:00:00 2001
From: Julien Muchembled <jm@nexedi.com>
Date: Tue, 2 Dec 2008 21:19:16 +0000
Subject: [PATCH] Use IPython user preferences to set the color scheme.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24772 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/tests/runUnitTest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py
index 5c147343ac..e553a9a79e 100755
--- a/product/ERP5Type/tests/runUnitTest.py
+++ b/product/ERP5Type/tests/runUnitTest.py
@@ -201,7 +201,7 @@ class DebugTestResult:
       # try ipython if available
       import IPython
       IPython.Shell.IPShell(argv=[])
-      p = IPython.Debugger.Pdb(color_scheme='Linux')
+      p = IPython.Debugger.Pdb(color_scheme=__IPYTHON__.rc.colors)
       p.reset()
       while tb.tb_next is not None:
         tb = tb.tb_next
-- 
2.30.9