Skip to content

PluralFormsTestCase tests in test_gettext are not independent #109864

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

Closed
serhiy-storchaka opened this issue Sep 25, 2023 · 0 comments
Closed

PluralFormsTestCase tests in test_gettext are not independent #109864

serhiy-storchaka opened this issue Sep 25, 2023 · 0 comments
Labels
3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Sep 25, 2023

Bug report

Bug description:

$ ./python -m test -v test_gettext -m PluralFormsTestCase
...
======================================================================
FAIL: test_plural_context_forms1 (test.test_gettext.PluralFormsTestCase.test_plural_context_forms1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_gettext.py", line 330, in test_plural_context_forms1
    eq(x, 'Hay %s fichero (context)')
AssertionError: 'There is %s file' != 'Hay %s fichero (context)'
- There is %s file
+ Hay %s fichero (context)


======================================================================
FAIL: test_plural_context_forms2 (test.test_gettext.PluralFormsTestCase.test_plural_context_forms2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_gettext.py", line 359, in test_plural_context_forms2
    eq(x, 'Hay %s fichero (context)')
AssertionError: 'There is %s file' != 'Hay %s fichero (context)'
- There is %s file
+ Hay %s fichero (context)


======================================================================
FAIL: test_plural_forms1 (test.test_gettext.PluralFormsTestCase.test_plural_forms1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_gettext.py", line 320, in test_plural_forms1
    eq(x, 'Hay %s fichero')
AssertionError: 'There is %s file' != 'Hay %s fichero'
- There is %s file
+ Hay %s fichero

CPython versions tested on:

3.11, 3.12, CPython main branch

Operating systems tested on:

No response

Linked PRs

@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir 3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes labels Sep 25, 2023
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Sep 25, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 7, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 7, 2023
serhiy-storchaka added a commit that referenced this issue Oct 7, 2023
… (GH-110503)

(cherry picked from commit 1aad4fc)

Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka added a commit that referenced this issue Oct 7, 2023
… (GH-110502)

(cherry picked from commit 1aad4fc)

Co-authored-by: Serhiy Storchaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
Status: Done
Development

No branches or pull requests

1 participant