Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shell_plus_tests incompatible with Python 3.12 #1832

Open
michel-slm opened this issue Jul 31, 2023 · 0 comments
Open

shell_plus_tests incompatible with Python 3.12 #1832

michel-slm opened this issue Jul 31, 2023 · 0 comments

Comments

@michel-slm
Copy link

Tested on Fedora 39 with Python 3.12 beta 4

_________ CRTestCase.test_installed_apps_no_resolve_conflicts_function _________
TypeError: Can't instantiate abstract class CRNoFunction without an implementation for abstract method 'resolve_collisions'
                                                                  
During handling of the above exception, another exception occurred:

self = <tests.management.commands.shell_plus_tests.test_collision_resolver.CRTestCase testMethod=test_installed_apps_no_resolve_conflicts_function>         

    @override_settings(
        SHELL_PLUS_MODEL_IMPORTS_RESOLVER='tests.management.commands.shell_plus_tests.test_collision_resolver.CRNoFunction',
    )
    def test_installed_apps_no_resolve_conflicts_function(self):
        exception_msg = "Can't instantiate abstract class CRNoFunction with abstract methods resolve_collisions"
        if sys.version_info[:2] >= (3, 9):
            exception_msg = exception_msg.replace('methods', 'method')
>       with self.assertRaisesRegex(TypeError, exception_msg):
E       AssertionError: "Can't instantiate abstract class CRNoFunction with abstract method resolve_collisions" does not match "Can't instantiate abstract class CRNoFunction without an implementation for abstract method 'resolve_collisions'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant