Skip to content

Commit

Permalink
add python3.11 to regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Oct 31, 2022
1 parent c18a5c6 commit 7a54949
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
max-parallel: 5
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
max-parallel: 6

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions tests/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def test_format():

with pytest.raises(ValueError) as exception:
q = Quantity('1ns')
'{:z}'.format(q)
assert exception.value.args[0] == "Unknown format code 'z' for object of type 'float'"
print('{:x}'.format(q))
assert exception.value.args[0] == "Unknown format code 'x' for object of type 'float'"

def test_full_format():
Quantity.set_prefs(spacer=None, show_label=None, label_fmt=None, label_fmt_full=None, show_desc=False)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ deps =
rkm_codes
voluptuous
commands =
py.test --cov --cov-report=html {posargs}
py.test -vv --cov --cov-report=html {posargs}

0 comments on commit 7a54949

Please sign in to comment.