Skip to content

Commit a9714c6

Browse files
authored
Merge pull request #138 from TheDSCPL/patch-1
Python 3.12.9 support
2 parents 00cc315 + 346dbae commit a9714c6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- "3.9"
3535
- "3.10"
3636
- "3.11"
37-
# - "3.12"
37+
- "3.12"
3838
steps:
3939
- uses: actions/checkout@v3
4040
- uses: actions/setup-python@v4

tests/test_cli/test_main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ def test_unknown_command(capsys):
2323
result = main(argv=['unknown', 'a1', 'a2'], commands=dict(fake=FakeCommand))
2424
assert result == 2
2525
captured = capsys.readouterr()
26-
exp = "invalid choice: 'unknown' (choose from 'fake')"
27-
assert exp in captured.err
26+
exp1 = "invalid choice: 'unknown' (choose from fake)"
27+
exp2 = "invalid choice: 'unknown' (choose from 'fake')"
28+
assert exp1 in captured.err or exp2 in captured.err
2829

2930

3031
def test_no_command_specified(capsys):

0 commit comments

Comments
 (0)