Skip to content

PluralFormsTestCase tests in test_gettext are not independent #109864

Closed
@serhiy-storchaka

Description

@serhiy-storchaka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions