Skip to content

Commit 6f3c0a6

Browse files
authored
Merge pull request #12 from InvestmentSystems/newer-python
Support newer python
2 parents 14f4075 + a70472f commit 6f3c0a6

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

class_only_design.wpr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ proj.file-list = [loc('setup.py'),
2525
proj.file-type = 'shared'
2626
testing.auto-test-file-specs = (('glob',
2727
'test_*.py'),)
28+
testing.test-framework = {None: ':internal pytest'}

class_only_design/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
__author__ = """Tom Rutherford"""
66
__email__ = "foreverwintr@gmail.com"
7-
__version__ = "0.3.0"
7+
__version__ = "1.0.0"
88

99
from class_only_design.api import ClassOnly
1010
from class_only_design.api import Namespace

class_only_design/tests/test_class_only.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def test_constant_no_use_without_class_only(self):
7676
# classes. For this reason, we disallow using constant with non class_only
7777
# classes.
7878

79-
with self.assertRaises(TypeError):
79+
# In python3.11, ANY exception in __set_name__ result in RuntimeError.
80+
with self.assertRaises((TypeError, RuntimeError)):
8081

8182
class Class:
8283
@constant

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pytest
2+
black

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36, py37, py35
2+
envlist = py311, py312, py313
33

44
[testenv]
55
deps = coverage

0 commit comments

Comments
 (0)