mrjoes / flask-babelex

i18n and l10n support for Flask based on Babel and pytz
http://flask.pocoo.org/
Other
77 stars 18 forks source link

Fail tests: test_basics, test_custom_locale_selector, test_init_app #23

Open pva opened 4 years ago

pva commented 4 years ago

Tests fail with the following error:

>>> Test phase: dev-python/flask-babelex-0.9.4
 * python3_6: running distutils-r1_run_phase python_test
F.FF............/usr/lib64/python3.6/site-packages/babel/numbers.py:352: DeprecationWarning: Use babel.numbers.format_decimal() instead.
  warnings.warn('Use babel.numbers.format_decimal() instead.', DeprecationWarning)
.
======================================================================
FAIL: test_basics (__main__.DateFormattingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests.py", line 38, in test_basics
    '12. April 2010 15:46:00 MESZ'
AssertionError

======================================================================
FAIL: test_custom_locale_selector (__main__.DateFormattingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests.py", line 98, in test_custom_locale_selector
    assert babel.format_datetime(d) == '12.04.2010 15:46:00'
AssertionError

======================================================================
FAIL: test_init_app (__main__.DateFormattingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests.py", line 60, in test_init_app
    '12. April 2010 15:46:00 MESZ'
AssertionError

----------------------------------------------------------------------
Ran 17 tests in 0.222s

FAILED (failures=3)

Software versions:

The following patch fixes a problem: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/flask-babelex/files/flask-babelex-0.9.3-tests-fix.patch?id=cc3811adf78b83af1cc2e27a893eae26fc9fc8ad