pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/pythonnet/pythonnet/commit/cf8823fa941842cfd19ad808f04bc6aa6d0b7970

ssorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-5efd63e783ac04bb.css" /> added regression test for "in Dictionary.Keys" check · pythonnet/pythonnet@cf8823f · GitHub
Skip to content

Commit cf8823f

Browse files
committed
added regression test for "in Dictionary.Keys" check
1 parent 2910800 commit cf8823f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_collection_mixins.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ def test_dict_items():
1414
k,v = items[0]
1515
assert k == 42
1616
assert v == "a"
17+
18+
# regression test for https://github.com/pythonnet/pythonnet/issues/1785
19+
def test_dict_in_keys():
20+
d = C.Dictionary[str, int]()
21+
d["a"] = 42
22+
assert "a" in d.Keys
23+
assert "b" not in d.Keys

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy