Skip to content

Conversation

@tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Jul 13, 2024

Adds tests for safe_repr, sorted_list_difference and unorderable_list_difference.

Getting the coverage: ./python ../coveragepy run --pylib --branch --source=unittest Lib/test/regrtest.py test_unittest
To get the HTML report: ./python ../coveragepy/ html -i --include=pwd/Lib/* --omit="Lib/test/*,Lib/*/tests/*"

Before:

image
image
image

After:

image
image
image

@bedevere-app bedevere-app bot added the tests Tests in the Lib/test dir label Jul 13, 2024
Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These aren't documented, but they are publicly available, so it's better to have tests for them...

@encukou encukou merged commit 901ea41 into python:main Jul 14, 2024
@encukou encukou added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Jul 14, 2024
@miss-islington-app
Copy link

Thanks @tomasr8 for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @tomasr8 for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 14, 2024
…121713)

(cherry picked from commit 901ea41)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 14, 2024
…121713)

(cherry picked from commit 901ea41)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Jul 14, 2024

GH-121737 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Jul 14, 2024
@bedevere-app
Copy link

bedevere-app bot commented Jul 14, 2024

GH-121738 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 14, 2024
encukou pushed a commit that referenced this pull request Jul 14, 2024
… (GH-121738)

(cherry picked from commit 901ea41)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
encukou pushed a commit that referenced this pull request Jul 14, 2024
… (GH-121737)

(cherry picked from commit 901ea41)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
@tomasr8 tomasr8 deleted the unittest-utils-tests branch July 14, 2024 09:12
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants