Skip to content

Update hmac from CPython v3.14.3#7122

Open
github-actions[bot] wants to merge 2 commits intomainfrom
main-c416cc8bbeaea03f
Open

Update hmac from CPython v3.14.3#7122
github-actions[bot] wants to merge 2 commits intomainfrom
main-c416cc8bbeaea03f

Conversation

@github-actions
Copy link
Contributor

Summary

Upgrade hmac from CPython v3.14.3.

Part of #6839

Changes

  • Updated Lib/hmac.py from CPython (added 1 line)
  • Migrated test files preserving RustPython markers
  • Auto-marked 5 new test failures with @expectedFailure

Test Results

The upgrade introduces 5 new test classes related to OpenSSL implementation:

  • OpenSSLConstructorTestCase.test_constructor_unknown_digestmod
  • OpenSSLConstructorTestCase.test_constructor_missing_digestmod
  • OpenSSLConstructorTestCase.test_constructor
  • OpenSSLConstructorTestCase.test_hmac_digest_digestmod_parameter
  • OpenSSLUpdateTestCase.test_update

These tests are marked as expected failures as they require OpenSSL-specific functionality not yet implemented in RustPython.

AI generated by Upgrade Python Library

  • expires on Feb 15, 2026, 11:47 AM UTC

@youknowone
Copy link
Member

@copilot how can i run CI for this patch?

Copy link
Contributor

Copilot AI commented Feb 14, 2026

@youknowone I've opened a new pull request, #7133, to work on those changes. Once the pull request is ready, I'll request review from you.

@youknowone
Copy link
Member

@copilot rebase this branch to upstream/main and fix the Ci failure

Copy link
Contributor

Copilot AI commented Feb 14, 2026

@youknowone I've opened a new pull request, #7140, to work on those changes. Once the pull request is ready, I'll request review from you.

@youknowone youknowone force-pushed the main-c416cc8bbeaea03f branch from b86926d to 645e217 Compare February 14, 2026 12:48
@github-actions
Copy link
Contributor Author

Code has been automatically formatted

The code in this PR has been formatted using:

  • cargo fmt --all
    Please pull the latest changes before pushing again:
git pull origin main-c416cc8bbeaea03f

@github-actions
Copy link
Contributor Author

📦 Library Dependencies

The following Lib/ modules were modified. Here are their dependencies:

[x] lib: cpython/Lib/hmac.py
[ ] test: cpython/Lib/test/test_hmac.py (TODO: 25)

dependencies:

  • hmac

dependent tests: (4 tests)

  • hmac: test_hmac test_smtplib
    • secrets: test_secrets
    • smtplib: test_smtpnet

Legend:

  • [+] path exists in CPython
  • [x] up-to-date, [ ] outdated

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

Successfully merging this pull request may close these issues.

2 participants