Skip to content

Commit

Permalink
Merge pull request #94 from manicmaniac/update-python-versions-in-tox
Browse files Browse the repository at this point in the history
update python versions in tox
  • Loading branch information
manicmaniac authored Nov 30, 2024
2 parents 883eb7e + f06910b commit 4e7f1e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions test_arc4.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
try:
from setuptools.distutils.version import StrictVersion
except ImportError:
from distutils.version import StrictVersion
import doctest
import functools
import multiprocessing
Expand All @@ -10,6 +6,13 @@
import timeit
import unittest

try:
import setuptools # noqa
except ImportError:
import sys
import unittest.mock
sys.modules['setuptools'] = unittest.mock.Mock()

import arc4
import setup

Expand Down Expand Up @@ -74,10 +77,7 @@ def test_arc4_module_has_doc(self):
self.assertIsNotNone(arc4.__doc__)

def test_arc4_version_is_strict_version(self):
try:
StrictVersion(arc4.__version__)
except (AttributeError, ValueError) as e:
self.fail(e)
self.assertRegex(arc4.__version__, r'^[0-9]+\.[0-9]+\.[0-9]+$')

def test_arc4_version_is_equal_to_setup_version(self):
self.assertEqual(arc4.__version__, setup.VERSION)
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 = py{37,38,39,310,311}
envlist = py{39,310,311,312,313}

[testenv]
commands = {envpython} -munittest discover --verbose

0 comments on commit 4e7f1e3

Please sign in to comment.