-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensured that ghostwriter does not use deprecated aliases
collections contains deprecated aliases for collections.abc classes. This commit ensures that those are not used anymore.
- Loading branch information
1 parent
9484551
commit db3688f
Showing
5 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
RELEASE_TYPE: patch | ||
|
||
This release ensures that Ghostwriter does not use the deprecated aliases | ||
for the ``collections.abc`` classes in ``collections``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
hypothesis-python/tests/ghostwriter/recorded/sequence_from_collections.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This test code was written by the `hypothesis.extra.ghostwriter` module | ||
# and is provided under the Creative Commons Zero public domain dedication. | ||
|
||
import collections.abc | ||
import test_expected_output | ||
from hypothesis import given, strategies as st | ||
|
||
|
||
@given(items=st.one_of(st.binary(), st.lists(st.integers()))) | ||
def test_fuzz_sequence_from_collections(items: collections.abc.Sequence[int]) -> None: | ||
test_expected_output.sequence_from_collections(items=items) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters