From 34ba8d2cdd5dca3a17b7857161e352680478e220 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" Date: Mon, 3 Jun 2019 07:16:16 +0000 Subject: [PATCH 1/3] Bump pytest from 4.5.0 to 4.6.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 4.5.0 to 4.6.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/4.5.0...4.6.1) --- test-requirements.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 43c789c3c0..1cedc515e6 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -18,7 +18,7 @@ entrypoints==0.3 # via flake8 flake8==3.7.7 idna==2.8 immutables==0.9 -importlib-metadata==0.17 # via pluggy +importlib-metadata==0.17 # via pluggy, pytest ipython-genutils==0.2.0 # via traitlets ipython==7.5.0 isort==4.3.20 # via pylint @@ -27,6 +27,7 @@ lazy-object-proxy==1.4.1 # via astroid mccabe==0.6.1 # via flake8, pylint more-itertools==7.0.0 # via pytest outcome==1.0.0 +packaging==19.0 # via pytest parso==0.4.0 # via jedi pexpect==4.7.0 # via ipython pickleshare==0.7.5 # via ipython @@ -40,10 +41,11 @@ pyflakes==2.1.1 # via flake8 pygments==2.4.2 # via ipython pylint==2.3.1 pyopenssl==19.0.0 +pyparsing==2.4.0 # via packaging pytest-cov==2.7.1 pytest-faulthandler==1.6.0 -pytest==4.5.0 -six==1.12.0 # via astroid, cryptography, prompt-toolkit, pyopenssl, pytest, traitlets +pytest==4.6.1 +six==1.12.0 # via astroid, cryptography, packaging, prompt-toolkit, pyopenssl, pytest, traitlets sniffio==1.1.0 sortedcontainers==2.1.0 traitlets==4.3.2 # via ipython From 32eba6f0166cb29aeef6ea12ca564272c61cc5f1 Mon Sep 17 00:00:00 2001 From: "Nathaniel J. Smith" Date: Mon, 3 Jun 2019 01:39:50 -0700 Subject: [PATCH 2/3] add some debugging --- trio/tests/test_file_io.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trio/tests/test_file_io.py b/trio/tests/test_file_io.py index 8f96e75aac..a529561db9 100644 --- a/trio/tests/test_file_io.py +++ b/trio/tests/test_file_io.py @@ -57,6 +57,12 @@ def test_wrapped_property(async_file, wrapped): def test_dir_matches_wrapped(async_file, wrapped): attrs = _FILE_SYNC_ATTRS.union(_FILE_ASYNC_METHODS) + print("attrs", attrs) + print("_FILE_SYNC_ATTRS", _FILE_SYNC_ATTRS) + print("_FILE_ASYNC_METHODS", _FILE_ASYNC_METHODS) + print("dir(async_file)", dir(async_file)) + print("dir(wrapper)", dir(wrapper)) + # all supported attrs in wrapped should be available in async_file assert all( attr in dir(async_file) for attr in attrs if attr in dir(wrapped) From 606c369a568b1916c2ca5bc373eaff18ba654cbe Mon Sep 17 00:00:00 2001 From: "Nathaniel J. Smith" Date: Mon, 3 Jun 2019 01:46:12 -0700 Subject: [PATCH 3/3] fix silly typo --- trio/tests/test_file_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trio/tests/test_file_io.py b/trio/tests/test_file_io.py index a529561db9..09a9a31efe 100644 --- a/trio/tests/test_file_io.py +++ b/trio/tests/test_file_io.py @@ -61,7 +61,7 @@ def test_dir_matches_wrapped(async_file, wrapped): print("_FILE_SYNC_ATTRS", _FILE_SYNC_ATTRS) print("_FILE_ASYNC_METHODS", _FILE_ASYNC_METHODS) print("dir(async_file)", dir(async_file)) - print("dir(wrapper)", dir(wrapper)) + print("dir(wrapped)", dir(wrapped)) # all supported attrs in wrapped should be available in async_file assert all(