Comments (4)
a little addendum, the tests will not work with a pytest version < 6.1.0 as the type annotation has only been added on that version
pytest-dev/pytest@acc9310#diff-bad7b9b2d1db5b8a39a3afbf2e9d783f341a11b50b8081b91f01f66efb8891c7
the errors I get on version 6.0.2 (but not with 6.1.0)
========= test session starts =========
platform linux -- Python 3.9.0, pytest-6.0.2, py-1.9.0, pluggy-0.13.1
rootdir: /mnt/56298eef-80c6-43f5-8aee-172b1d73d266/Projects/Fedora/python-subprocess-tee/subprocess-tee-0.1.5-test, configfile: setup.cfg
collected 2 items / 2 errors========= ERRORS =========
_________ ERROR collecting lib/subprocess_tee/test/test_unit.py _________
lib/subprocess_tee/test/test_unit.py:48: in
def test_run_echo(capsys: CaptureFixture[str]) -> None:
E TypeError: 'type' object is not subscriptable
_________ ERROR collecting lib/subprocess_tee/test/test_unit.py _________
lib/subprocess_tee/test/test_unit.py:48: in
def test_run_echo(capsys: CaptureFixture[str]) -> None:
E TypeError: 'type' object is not subscriptable
========= short test summary info =========
ERROR lib/subprocess_tee/test/test_unit.py - TypeError: 'type' object is not subscriptable
ERROR lib/subprocess_tee/test/test_unit.py - TypeError: 'type' object is not subscriptable
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========= 2 errors in 0.18s =========
from subprocess-tee.
Sure. The min test requirements are not well tested as pip always installs current versions. Feel free to raise a PR to bump the minimal pytest version needed for running tests.
For stuff like this we can even skip creating a bug.
from subprocess-tee.
added pr #20
from subprocess-tee.
Thanks.
from subprocess-tee.
Related Issues (20)
- Execution is always as a shell HOT 2
- (🐞) Doesn't work on Windows
- (‼) subprocess-tee is not a drop-in replacement for subprocess
- (🐞) There are no types for the kwargs
- (🐞) Doesn't work from async code
- If check=False execution becomes async
- If check=True, empty output becomes None
- Allow redirecting stderr to stdout (stderr=sp.STDOUT)
- Windows: Multiple arguments unsupported
- Windows: Argument list converted to string incorrectly
- Does not print partial lines
- not working on windows HOT 1
- How do you use this for try-catch exceptions?
- Difference between this and `ubelt.cmd`, others? What makes this problem so difficult? HOT 3
- test_rich_console_ex Test fail: duplicate values HOT 5
- Not work on windows HOT 1
- Tests are installed
- Platform requirements not clearly advertised HOT 2
- RuntimeError: There is no current event loop in thread 'MainThread'. HOT 2
- Run inside Jupyter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subprocess-tee.