diff --git a/IPython/config/tests/test_configurable.py b/IPython/config/tests/test_configurable.py index 0caf2f4..bb88795 100644 --- a/IPython/config/tests/test_configurable.py +++ b/IPython/config/tests/test_configurable.py @@ -31,7 +31,7 @@ from IPython.utils.traitlets import ( ) from IPython.config.loader import Config - +from IPython.utils.py3compat import PY3 #----------------------------------------------------------------------------- # Test cases @@ -62,6 +62,11 @@ mc_help_inst=u"""MyConfigurable options Current: 4.0 The integer b.""" +# On Python 3, the Integer trait is a synonym for Int +if PY3: + mc_help = mc_help.replace(u"", u"") + mc_help_inst = mc_help_inst.replace(u"", u"") + class Foo(Configurable): a = Integer(0, config=True, help="The integer a.") b = Unicode('nope', config=True)