Skip to content

Regression with locale tests on Windows/Wx #899

@corranwebster

Description

@corranwebster

We are now consistently getting this exception in Windows test with Wx:

======================================================================
ERROR: test_locale_independence (kiva.tests.agg.test_text.TestText)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\enable\enable\.edm\envs\enable-test-3.6-wx\lib\site-packages\kiva\tests\agg\test_text.py", line 47, in test_locale_independence
    x0, _ = gc.get_text_position()
  File "D:\a\enable\enable\.edm\envs\enable-test-3.6-wx\lib\contextlib.py", line 88, in __exit__
    next(self.gen)
  File "D:\a\enable\enable\.edm\envs\enable-test-3.6-wx\lib\site-packages\kiva\tests\agg\test_text.py", line 30, in locale_context
    locale.setlocale(category, old)
  File "D:\a\enable\enable\.edm\envs\enable-test-3.6-wx\lib\locale.py", line 598, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

----------------------------------------------------------------------
Ran 381 tests in 101.942s

FAILED (errors=1, skipped=62, expected failures=1)

This looks like there is some issue in setting the locale back to its original value (which shouldn't ever be a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions