Show More
@@ -31,7 +31,7 from IPython.utils.traitlets import ( | |||||
31 | ) |
|
31 | ) | |
32 |
|
32 | |||
33 | from IPython.config.loader import Config |
|
33 | from IPython.config.loader import Config | |
34 |
|
34 | from IPython.utils.py3compat import PY3 | ||
35 |
|
35 | |||
36 | #----------------------------------------------------------------------------- |
|
36 | #----------------------------------------------------------------------------- | |
37 | # Test cases |
|
37 | # Test cases | |
@@ -62,6 +62,11 mc_help_inst=u"""MyConfigurable options | |||||
62 | Current: 4.0 |
|
62 | Current: 4.0 | |
63 | The integer b.""" |
|
63 | The integer b.""" | |
64 |
|
64 | |||
|
65 | # On Python 3, the Integer trait is a synonym for Int | |||
|
66 | if PY3: | |||
|
67 | mc_help = mc_help.replace(u"<Integer>", u"<Int>") | |||
|
68 | mc_help_inst = mc_help_inst.replace(u"<Integer>", u"<Int>") | |||
|
69 | ||||
65 | class Foo(Configurable): |
|
70 | class Foo(Configurable): | |
66 | a = Integer(0, config=True, help="The integer a.") |
|
71 | a = Integer(0, config=True, help="The integer a.") | |
67 | b = Unicode('nope', config=True) |
|
72 | b = Unicode('nope', config=True) |
General Comments 0
You need to be logged in to leave comments.
Login now