failed WRONG_FIX UNSUBMITTED wrong_fix_unsubmitted(None) · None tool calls · 0 s · Textualize/rich
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
--- a/.github/workflows/pythonpackage.yml
+++ b/.github/workflows/pythonpackage.yml
@@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
- python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
+ python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11.0-beta.4"]
defaults:
run:
shell: bash
@@ -35,10 +35,16 @@ jobs:
run: |
source $VENV
make typecheck
- - name: Test with pytest
+ - name: Test with pytest (with coverage)
+ if: matrix.python-version != '3.11.0-beta.4'
run: |
source $VENV
pytest tests -v --cov=./rich --cov-report=xml:./coverage.xml --cov-report term-missing
+ - name: Test with pytest (no coverage)
+ if: matrix.python-version == '3.11.0-beta.4'
+ run: |
+ source $VENV
+ pytest tests -v
- name: Upload code coverage
uses: codecov/codecov-action@v2
with:
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
test:
TERM=unknown pytest --cov-report term-missing --cov=rich tests/ -vv
+test-no-cov:
+ TERM=unknown pytest tests/ -vv
format-check:
black --check .
format:
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
"Typing :: Typed",
]
include = ["rich/py.typed"]
--- a/rich/color.py
+++ b/rich/color.py
@@ -29,6 +29,9 @@ class ColorSystem(IntEnum):
def __repr__(self) -> str:
return f"ColorSystem.{self.name}"
+ def __str__(self) -> str:
+ return repr(self)
+
class ColorType(IntEnum):
"""Type of color stored in Color class."""
...F
=================================== FAILURES ===================================
________________ test_inspect_builtin_function_except_python311 ________________
@skip_py311
@skip_pypy3
def test_inspect_builtin_function_except_python311():
# Pre-3.11 Python versions - print builtin has no signature available
expected = (
"╭────────── <built-in function print> ───────────╮\n"
"│ def print(...) │\n"
"│ │\n"
"│ print(value, ..., sep=' ', end='\\n', │\n"
"│ file=sys.stdout, flush=False) │\n"
"│ │\n"
"│ 29 attribute(s) not shown. Run │\n"
"│ inspect(inspect) for options. │\n"
"╰────────────────────────────────────────────────╯\n"
)
> assert render(print) == expected
E AssertionError: assert '╭────────── ...──────────╯\n' == '╭────────── ...──────────╯\n'
E
E Skipping 53 identical leading characters in diff, use -v to show
E - def print(...) │
E + def print(*args, sep=' ', end='\n', file=None, │
E + │ flush=False): │
E │ │
E - │ print(value, ..., sep=' ', end='\n', │...
E
E ...Full output truncated (10 lines hidden), use '-vv' to show
tests/test_inspect.py:160: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 3 passed in 0.17s