Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • pygolang pygolang
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • pygolangpygolang
  • Merge requests
  • !1

Fix test of warning filters in gpython.

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Carlos Ramos Carreño requested to merge vnmabus/pygolang:fix/warning_test into master Jun 19, 2024
  • Overview 3
  • Commits 1
  • Changes 1

The tests for gpython's handling of warning filters assumed that the warnings passed in the command line were located on the top of the warning filters list. This is not true in the presence of automatically imported modules that set warning filters, such as _distutils_hack, which used to filter deprecation warnings from distutils.

We fix it by comparing against a regex which allows extra filters above or below the ones we set.

Edited Jun 20, 2024 by Carlos Ramos Carreño
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/warning_test
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7