Skip to content

Commit

Permalink
Merge pull request #3337 from HypothesisWorks/create-pull-request/patch
Browse files Browse the repository at this point in the history
Update pinned dependencies
  • Loading branch information
Zac-HD committed May 10, 2022
2 parents 354e239 + a4681f6 commit 2a071c8
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Install dependencies
run: |
pip install --upgrade setuptools pip wheel
pip install -r requirements/test.txt fakeredis typing-extensions
pip install -r requirements/coverage.txt
pip install hypothesis-python/[all]
- name: Run tests
run: python -m pytest --numprocesses auto hypothesis-python/tests/ --ignore=hypothesis-python/tests/quality/ --ignore=hypothesis-python/tests/ghostwriter/
Expand Down
2 changes: 1 addition & 1 deletion AUTHORS.rst
Expand Up @@ -83,7 +83,7 @@ their individual contributions.
* `Katelyn Gigante <https://github.com/silasary>`_
* `Katrina Durance <https://github.com/kdurance>`_
* `kbara <https://www.github.com/kbara>`_
* Keeri Tramm
* `Keeri Tramm <keerilynn>`_
* `Kristian Glass <https://www.github.com/doismellburning>`_
* `Krzysztof Przybyła <https://github.com/kprzybyla>`_
* `Kyle Reeve <https://www.github.com/kreeve>`_ (krzw92@gmail.com)
Expand Down
11 changes: 3 additions & 8 deletions hypothesis-python/docs/quickstart.rst
Expand Up @@ -86,7 +86,7 @@ Anyway, this test immediately finds a bug in the code:
Hypothesis correctly points out that this code is simply wrong if called on
an empty string.

If we fix that by just adding the following code to the beginning of the function
If we fix that by just adding the following code to the beginning of our ``encode`` function
then Hypothesis tells us the code is correct (by doing nothing as you'd expect
a passing test to).

Expand Down Expand Up @@ -115,7 +115,8 @@ of data are valid inputs, or to ensure that particular edge cases such as
although Hypothesis will :doc:`remember failing examples <database>`,
we don't recommend distributing that database.

It's also worth noting that both example and given support keyword arguments as
It's also worth noting that both :func:`@example <hypothesis.example>` and
:func:`@given <hypothesis.given>` support keyword arguments as
well as positional. The following would have worked just as well:

.. code:: python
Expand Down Expand Up @@ -160,12 +161,6 @@ values are enough to set the count to a number different from one, followed by
another distinct value which should have reset the count but in this case
didn't.

The examples Hypothesis provides are valid Python code you can run. Any
arguments that you explicitly provide when calling the function are not
generated by Hypothesis, and if you explicitly provide *all* the arguments
Hypothesis will just call the underlying function once rather than
running it multiple times.

----------
Installing
----------
Expand Down
3 changes: 2 additions & 1 deletion hypothesis-python/setup.py
Expand Up @@ -16,7 +16,8 @@

if sys.version_info[:2] < (3, 7):
raise Exception(
"This version of Python is too old to install new versions of Hypothesis. "
"You are trying to install Hypothesis using Python "
f"{sys.version.split()[0]}, but it requires Python 3.7 or later."
"Update `pip` and `setuptools`, try again, and you will automatically "
"get the latest compatible version of Hypothesis instead. "
"See also https://python3statement.org/practicalities/"
Expand Down
5 changes: 0 additions & 5 deletions hypothesis-python/tests/conftest.py
Expand Up @@ -37,11 +37,6 @@
if sys.version_info >= (3, 11):
collect_ignore_glob.append("cover/test_asyncio.py") # @asyncio.coroutine removed

assert sys.version_info.releaselevel == "alpha"
# TODO: our traceback elision doesn't work with Python 3.11's nice new format yet
collect_ignore_glob.append("cover/test_traceback_elision.py")
collect_ignore_glob.append("pytest/test_capture.py")


def pytest_configure(config):
config.addinivalue_line("markers", "slow: pandas expects this marker to exist.")
Expand Down
4 changes: 0 additions & 4 deletions hypothesis-python/tests/cover/test_lookup_py37.py
Expand Up @@ -163,10 +163,6 @@ def test_resolving_standard_callable_ellipsis(x: collections.abc.Callable[..., E
assert isinstance(x(1, 2, 3, a=4, b=5, c=6), Elem)


@pytest.mark.skipif(
sys.version_info[:3] == (3, 11, 0),
reason="https://github.com/python/cpython/issues/91621",
)
@given(...)
def test_resolving_standard_callable_no_args(x: collections.abc.Callable[[], Elem]):
assert isinstance(x, collections.abc.Callable)
Expand Down
4 changes: 2 additions & 2 deletions requirements/coverage.txt
Expand Up @@ -30,7 +30,7 @@ iniconfig==1.1.1
# via pytest
lark-parser==0.12.0
# via -r requirements/coverage.in
libcst==0.4.1
libcst==0.4.2
# via -r requirements/coverage.in
mypy-extensions==0.4.3
# via
Expand Down Expand Up @@ -104,5 +104,5 @@ typing-extensions==4.2.0
# typing-inspect
typing-inspect==0.7.1
# via libcst
wrapt==1.14.0
wrapt==1.14.1
# via deprecated
16 changes: 8 additions & 8 deletions requirements/tools.txt
Expand Up @@ -51,7 +51,7 @@ commonmark==0.9.1
# via rich
coverage==6.3.2
# via -r requirements/tools.in
cryptography==37.0.1
cryptography==37.0.2
# via secretstorage
decorator==5.1.1
# via ipython
Expand Down Expand Up @@ -156,7 +156,7 @@ keyring==23.5.0
# via twine
lark-parser==0.12.0
# via -r requirements/tools.in
libcst==0.4.1
libcst==0.4.2
# via
# -r requirements/tools.in
# shed
Expand Down Expand Up @@ -184,7 +184,7 @@ parso==0.8.3
# via jedi
pathspec==0.9.0
# via black
pbr==5.8.1
pbr==5.9.0
# via stevedore
pep517==0.12.0
# via pip-tools
Expand Down Expand Up @@ -234,15 +234,15 @@ pygments==2.12.0
# sphinx
pyparsing==3.0.8
# via packaging
pyright==1.1.242
pyright==1.1.245
# via -r requirements/tools.in
pytest==7.1.2
# via -r requirements/tools.in
python-dateutil==2.8.2
# via -r requirements/tools.in
pytz==2022.1
# via babel
pyupgrade==2.32.0
pyupgrade==2.32.1
# via shed
pyyaml==6.0
# via
Expand All @@ -262,7 +262,7 @@ restructuredtext-lint==1.4.0
# via -r requirements/tools.in
rfc3986==2.0.0
# via twine
rich==12.3.0
rich==12.4.0
# via twine
secretstorage==3.3.2
# via keyring
Expand Down Expand Up @@ -340,9 +340,9 @@ types-click==7.1.8
# via -r requirements/tools.in
types-pkg-resources==0.1.3
# via -r requirements/tools.in
types-pytz==2021.3.7
types-pytz==2021.3.8
# via -r requirements/tools.in
types-redis==4.2.0
types-redis==4.2.2
# via -r requirements/tools.in
typing-extensions==4.2.0
# via
Expand Down

0 comments on commit 2a071c8

Please sign in to comment.