##// END OF EJS Templates
Add builtins._ doctest...
Nikita Kniazev -
Show More
@@ -74,3 +74,19 b' def doctest_multiline3():'
74 In [15]: h(0)
74 In [15]: h(0)
75 Out[15]: -1
75 Out[15]: -1
76 """
76 """
77
78
79 def doctest_builtin_underscore():
80 """Defining builtins._ should not break anything outside the doctest
81 while also should be working as expected inside the doctest.
82
83 In [1]: import builtins
84
85 In [2]: builtins._ = 42
86
87 In [3]: builtins._
88 Out[3]: 42
89
90 In [4]: _
91 Out[4]: 42
92 """
General Comments 0
You need to be logged in to leave comments. Login now