Skip to content

Commit

Permalink
pkg: tested with Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Miksus committed Nov 24, 2021
1 parent e642833 commit fe3b500
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion redengine/test/task/command/test_run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

from pathlib import Path
import platform
import sys

import pytest

Expand Down Expand Up @@ -55,7 +56,7 @@ def test_fail_command(tmpdir, execution, session):
assert "fail" == task.status

err = logs[1]["exc_text"].strip().replace('\r', '')
if platform.python_version() >= '3.8.0':
if (sys.version_info.major, sys.version_info.minor) >= (3, 8):
expected = "OSError: Failed running command (2): \nunknown option --not_an_arg\nusage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...\nTry `python -h' for more information."
else:
expected = "OSError: Failed running command (2): \nUnknown option: --\nusage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...\nTry `python -h' for more information."
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",

"Topic :: Office/Business :: Scheduling",

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py38
envlist = py36,py38,py310
# isolated_build = True
# requires = [-rrequirements.txt]

Expand Down

0 comments on commit fe3b500

Please sign in to comment.