Skip to content

Commit

Permalink
[wip] Support for py3.11+, see #364
Browse files Browse the repository at this point in the history
The first attempt was landed too soon and reverted - turns out that 3.11+ actually have real breakages that we need to fix before we can call them supported
  • Loading branch information
shish committed Mar 27, 2024
1 parent f22c183 commit 9c1b2fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
# Ensure that all flavours are run to completion even if an other flavor failed
fail-fast: false

Expand Down
17 changes: 10 additions & 7 deletions tests/mock_constructor_testslide.py
Expand Up @@ -205,13 +205,16 @@ def can_access_class_attributes(self):
self.assertEqual(original_target_class.CLASS_ATTR, "CLASS_ATTR")

@context.example
def can_call_class_methods(self):
for name in [
"regular_class_method",
"p2_super_class_method",
"p3_super_class_method",
]:
self.assertEqual(getattr(original_target_class, name)(), name)
def can_call_regular_class_method(self):
self.assertEqual(original_target_class.regular_class_method(), "regular_class_method")

@context.example
def can_call_p2_super_class_method(self):
self.assertEqual(original_target_class.p2_super_class_method(), "p2_super_class_method")

@context.example
def can_call_p3_super_class_method(self):
self.assertEqual(original_target_class.p3_super_class_method(), "p3_super_class_method")

@context.example
def can_call_static_methods(self):
Expand Down

0 comments on commit 9c1b2fe

Please sign in to comment.