Bug#912069: flask-wtf FTBFS: FAIL: test_i18n_enabled (tests.test_i18n.TestI18NCase)

2018-10-31 Thread Christoph Berg
Re: Adrian Bunk 2018-10-27 
<154067546369.20678.16027981767936779592.reportbug@localhost>
> Some recent change in unstable makes flask-wtf FTBFS:
> Traceback (most recent call last):
>   File 
> "/build/1st/flask-wtf-0.14.2/.pybuild/cpython2_2.7_flaskext.wtf/build/tests/test_i18n.py",
>  line 32, in test_i18n_enabled
> assert '\u8be5\u5b57\u6bb5\u662f' in to_unicode(response.data)

I recently updated wtforms which is probably the culprit here. The
unicode string it is looking for is "该字段是" which is the
translation of "This field is required." (see tests/test_i18n.py).
The string is still in wtforms' wtforms/locale/zh/LC_MESSAGES/wtforms.po
file, though.

It looks like translations are busted:

foo = response.data
print (foo)
assert '\u8be5\u5b57\u6bb5\u662f' in to_unicode(foo)

AssertionError:
 >> begin captured stdout << -







{name: [uThis field is required.]}



Name









- >> end captured stdout << --

Christoph



Bug#912069: flask-wtf FTBFS: FAIL: test_i18n_enabled (tests.test_i18n.TestI18NCase)

2018-10-27 Thread Adrian Bunk
Source: flask-wtf
Version: 0.14.2-2
Severity: serious
Tags: ftbfs

Some recent change in unstable makes flask-wtf FTBFS:

https://tests.reproducible-builds.org/debian/history/flask-wtf.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/flask-wtf.html

...

==
FAIL: test_i18n_enabled (tests.test_i18n.TestI18NCase)
--
Traceback (most recent call last):
  File 
"/build/1st/flask-wtf-0.14.2/.pybuild/cpython2_2.7_flaskext.wtf/build/tests/test_i18n.py",
 line 32, in test_i18n_enabled
assert '\u8be5\u5b57\u6bb5\u662f' in to_unicode(response.data)
AssertionError

--
Ran 52 tests in 0.661s

FAILED (failures=1)
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd 
/build/1st/flask-wtf-0.14.2/.pybuild/cpython2_2.7_flaskext.wtf/build; python2.7 
-m nose -v tests
dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 returned 
exit code 13
make: *** [debian/rules:11: build] Error 25