Added a patch for a faker problem with locale ro_RO names (default first_names from a region without first_names explicitly declared are returned as str instead of unicode under python 2.7, https://github.com/joke2k/faker/issues/684)

- Legacy-Id: 14645
This commit is contained in:
Henrik Levkowetz 2018-02-16 13:13:40 +00:00
parent 838ad9cf44
commit 85db75739a
2 changed files with 12 additions and 0 deletions

View file

@ -930,6 +930,7 @@ SILENCED_SYSTEM_CHECKS = [
CHECKS_LIBRARY_PATCHES_TO_APPLY = [
'patch/fix-django-unicode-comparison-bug.patch',
'patch/fix-unidecode-argument-warning.patch',
'patch/fix-faker-provider-ro-RO-string.patch',
]
STATS_NAMES_LIMIT = 25

View file

@ -0,0 +1,11 @@
--- faker/providers/person/ro_RO/__init__.py.old 2018-02-16 04:57:48.915570971 -0800
+++ faker/providers/person/ro_RO/__init__.py 2018-02-16 04:57:51.243625893 -0800
@@ -104,6 +104,8 @@
'Vasilică', 'Veniamin', 'Vicențiu', 'Victor', 'Vincențiu', 'Viorel', 'Visarion', 'Vlad', 'Vladimir', 'Vlaicu',
'Voicu', 'Zamfir', 'Zeno')
+ first_names = first_names_male + first_names_female
+
# sources: https://ro.wikipedia.org/wiki/Lista_celor_mai_uzuale_nume_de_familie#Rom%C3%A2nia
last_names = (
'Aanei', 'Ababei', 'Albu', 'Ardelean', 'Barbu', 'Cristea', 'Diaconescu', 'Diaconu', 'Dima', 'Dinu', 'Dobre',