Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919059 - dev-python/Faker-20.1.0 fails tests
Summary: dev-python/Faker-20.1.0 fails tests
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-02 19:11 UTC by Jonathan Lovelace
Modified: 2023-12-02 19:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:Faker-20.1.0:20231202-182359.log (dev-python:Faker-20.1.0:20231202-182359.log,877.77 KB, text/plain; charset=utf-8)
2023-12-02 19:11 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.70 KB, text/plain; charset=utf-8)
2023-12-02 19:12 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2023-12-02 19:11:23 UTC
Created attachment 876445 [details]
dev-python:Faker-20.1.0:20231202-182359.log

=dev-python/Faker-20.1.0 fails its test phase for me. Specifically, the test TestFiFI.test_ssn_without_age_range fails:

=================================================================================== FAILURES ===================================================================================
_____________________________________________________________________ TestFiFI.test_ssn_without_age_range ______________________________________________________________________

self = <tests.providers.test_ssn.TestFiFI testMethod=test_ssn_without_age_range>

    def test_ssn_without_age_range(self):
        current_year = datetime.now().year
        age = current_year - 1995
        ssn = self.fake.ssn(min_age=age, max_age=age, artificial=True)
        assert "95-" in ssn
        age = current_year - 2013
        ssn = self.fake.ssn(min_age=age, max_age=age, artificial=True)
        assert "13A" in ssn
        age = current_year - 1898
        ssn = self.fake.ssn(min_age=age, max_age=age, artificial=True)
>       assert "98+" in ssn
E       AssertionError: assert '98+' in '010199+953R'

age        = 125
current_year = 2023
self       = <tests.providers.test_ssn.TestFiFI testMethod=test_ssn_without_age_range>
ssn        = '010199+953R'

tests/providers/test_ssn.py:816: AssertionError
=============================================================================== warnings summary ===============================================================================
tests/test_providers_formats.py::test_no_invalid_formats[fr_QC]
  /var/tmp/portage/dev-python/Faker-20.1.0/work/Faker-20.1.0/faker/providers/person/fr_QC/__init__.py:10: UserWarning: fr_QC locale is deprecated. Please use fr_CA.
    warnings.warn("fr_QC locale is deprecated. Please use fr_CA.")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================================================== short test summary info ============================================================================
SKIPPED [1] tests/providers/test_address.py:531: could not import 'ukpostcodeparser.parser': No module named 'ukpostcodeparser'
SKIPPED [1] tests/providers/test_date_time.py:196: windows does not support sub second precision
SKIPPED [1] tests/providers/test_date_time.py:548: windows does not support sub second precision
SKIPPED [2] tests/pytest/session_overrides/session_locale/test_autouse_faker_locale.py: This test is skipped by default since it depends on changes in the behavior of session-scoped fixtures. Use a separate pytest run for tests like this with the "--exclusive-faker-session" flag specified.
SKIPPED [2] tests/pytest/session_overrides/session_locale/test_autouse_faker_seed.py: This test is skipped by default since it depends on changes in the behavior of session-scoped fixtures. Use a separate pytest run for tests like this with the "--exclusive-faker-session" flag specified.
SKIPPED [4] tests/pytest/session_overrides/session_locale/test_manual_injection.py: This test is skipped by default since it depends on changes in the behavior of session-scoped fixtures. Use a separate pytest run for tests like this with the "--exclusive-faker-session" flag specified.
FAILED tests/providers/test_ssn.py::TestFiFI::test_ssn_without_age_range - AssertionError: assert '98+' in '010199+953R'
====================================================== 1 failed, 1831 passed, 11 skipped, 1 warning in 110.01s (0:01:50) =======================================================
Comment 1 Jonathan Lovelace 2023-12-02 19:12:55 UTC
Created attachment 876446 [details]
emerge-info.txt
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-12-02 19:44:36 UTC
It worked yesterday!

Like:

$ faketime '2023-12-01' python -m pytest tests/providers/test_ssn.py::TestFiFI