8000 Updating dict intialization method by kellrott · Pull Request #217 · go-python/gpython · GitHub
[go: up one dir, main page]

Skip to content

Updating dict intialization method #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adding more assertion tests for dict testing
  • Loading branch information
kellrott committed Jan 18, 2023
commit 62fd86d38a5cc945cb930aa9236ab722d58f79e4
2 changes: 2 additions & 0 deletions py/tests/dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def doDel(d, key):
assert a["c"] == "3"

assertRaises(TypeError, dict, "a")
assertRaises(TypeError, dict, 1)
assertRaises(TypeError, dict, {"a":1}, {"b":2})

doc="__contain__"
a = {'hello': 'world'}
Expand Down
0