Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bpython/bpython
/ FakeDict
Class
FakeDict
bpython/test/test_simpleeval.py:44–45 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
43
def
test_lookup_on_suspicious_types(self):
44
class
FakeDict:
45
pass
46
47
with
self.assertRaises(ValueError):
48
simple_eval(
"a[1]"
, {
"a"
: FakeDict()})
Callers
1
test_lookup_on_suspicious_types
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_lookup_on_suspicious_types
Method · 0.68