Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S slapos.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 38
    • Merge requests 38
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slapos.core
  • Merge requests
  • !761

test_promise: Update the error message to match python 3.12

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Boxiang Sun requested to merge Daetalus/slapos.core:3.12 into master Apr 04, 2025
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

Python 3.12 update the error message for object_new when instantiate the abstract class:

        PyErr_Format(PyExc_TypeError,
                     "Can't instantiate abstract class %s "
                     "without an implementation for abstract method%s '%U'",
                     type->tp_name,
                     method_count > 1 ? "s" : "",
                     joined);

https://github.com/python/cpython/blob/3.12/Objects/typeobject.c#L5499C23-L5499C68

Here is the Python 3.9 object_new error message:

       PyErr_Format(PyExc_TypeError,
                     "Can't instantiate abstract class %s "
                     "with abstract method%s %U",
                     type->tp_name,
                     method_count > 1 ? "s" : "",
                     joined);

https://github.com/python/cpython/blob/3.9/Objects/typeobject.c#L3938

Tests are running https://erp5js.nexedi.net/#/test_result_module/20250404-B400925

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 3.12
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7