Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ test_time_no_var_expand
Function
test_time_no_var_expand
IPython/core/tests/test_magic.py:1223–1227 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1221
1222
1223
def
test_time_no_var_expand():
1224
_ip.user_ns[
'a'
] = 5
1225
_ip.user_ns[
'b'
] = []
1226
_ip.magic(
'time b.append("{a}")'
)
1227
assert _ip.user_ns[
'b'
] == [
'{a}'
]
1228
1229
1230
# this is slow, put at the end for local testing.
Callers
nothing calls this directly
Calls
1
magic
Method · 0.45
Tested by
no test coverage detected