Skip to content

Commit 3c4c05a

Browse files
authored
Merge pull request #4622 from Liam-DeVoe/proto-constants
Add `__dict__` to constant strings
2 parents d02bd85 + e234c97 commit 3c4c05a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hypothesis-python/RELEASE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
RELEASE_TYPE: patch
22

3-
Add ``__proto__`` to the list of constant strings Hypothesis sometimes generates.
3+
Add ``__dict__`` and ``__proto__`` to the list of constant strings Hypothesis sometimes generates.

hypothesis-python/src/hypothesis/internal/conjecture/providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@
170170
"if",
171171
"then",
172172
"else",
173+
"__dict__",
174+
"__proto__", # javascript
173175
# strings which can be interpreted as a number
174176
"0",
175177
"1e100",
@@ -183,8 +185,6 @@
183185
"INF",
184186
"NaN",
185187
"9" * 30,
186-
# javascript keywords
187-
"__proto__",
188188
# common ascii characters
189189
",./;'[]\\-=<>?:\"{}|_+!@#$%^&*()`~",
190190
# common unicode characters

0 commit comments

Comments
 (0)