Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1693603

Summary: python-freezegun FTBFS with Python 3.8: test_uuid failures
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-freezegunAssignee: Fedora Infrastructure SIG <infra-sig>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, infra-sig, rbean
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-11 23:39:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1686977    
Attachments:
Description Flags
Full log from Copr none

Description Miro Hrončok 2019-03-28 09:52:51 UTC
Created attachment 1548948 [details]
Full log from Copr

+ nosetests-3.8 tests/
.........................S.......................S.....S.S......................................FF..
======================================================================
FAIL: Test that we can go back in time after setting a future date.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/builddir/build/BUILD/python3-python-freezegun-0.3.11-4.fc31/tests/test_uuid.py", line 28, in test_uuid1_future
    assert_equal(time_from_uuid(uuid.uuid1()), future_target)
AssertionError: FakeDatetime(2019, 3, 28, 1, 36, 13, 24883) != datetime.datetime(2056, 2, 6, 14, 3, 21)
    'FakeDatetime(2019, 3, 28, 1, 36, 13, 24883) != datetime.datetime(2056, 2, 6, 14, 3, 21)' = '%s != %s' % _common_shorten_repr(FakeDatetime(2019, 3, 28, 1, 36, 13, 24883), datetime.datetime(2056, 2, 6, 14, 3, 21))
    'FakeDatetime(2019, 3, 28, 1, 36, 13, 24883) != datetime.datetime(2056, 2, 6, 14, 3, 21)' = self._formatMessage('FakeDatetime(2019, 3, 28, 1, 36, 13, 24883) != datetime.datetime(2056, 2, 6, 14, 3, 21)', 'FakeDatetime(2019, 3, 28, 1, 36, 13, 24883) != datetime.datetime(2056, 2, 6, 14, 3, 21)')
>>  raise self.failureException('FakeDatetime(2019, 3, 28, 1, 36, 13, 24883) != datetime.datetime(2056, 2, 6, 14, 3, 21)')
    

======================================================================
FAIL: Test that we can go forward in time after setting some time in the past.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/builddir/build/BUILD/python3-python-freezegun-0.3.11-4.fc31/tests/test_uuid.py", line 42, in test_uuid1_past
    assert_equal(time_from_uuid(uuid.uuid1()), past_target)
AssertionError: FakeDatetime(2019, 3, 28, 1, 36, 13, 50604) != datetime.datetime(1978, 7, 6, 23, 6, 31)
    'FakeDatetime(2019, 3, 28, 1, 36, 13, 50604) != datetime.datetime(1978, 7, 6, 23, 6, 31)' = '%s != %s' % _common_shorten_repr(FakeDatetime(2019, 3, 28, 1, 36, 13, 50604), datetime.datetime(1978, 7, 6, 23, 6, 31))
    'FakeDatetime(2019, 3, 28, 1, 36, 13, 50604) != datetime.datetime(1978, 7, 6, 23, 6, 31)' = self._formatMessage('FakeDatetime(2019, 3, 28, 1, 36, 13, 50604) != datetime.datetime(1978, 7, 6, 23, 6, 31)', 'FakeDatetime(2019, 3, 28, 1, 36, 13, 50604) != datetime.datetime(1978, 7, 6, 23, 6, 31)')
>>  raise self.failureException('FakeDatetime(2019, 3, 28, 1, 36, 13, 50604) != datetime.datetime(1978, 7, 6, 23, 6, 31)')
    

Name                    Stmts   Miss  Cover   Missing
-----------------------------------------------------
freezegun/__init__.py       8      0   100%
freezegun/_async.py        12      1    92%   12
freezegun/api.py          505    110    78%   39, 44-46, 50-51, 61-65, 76-77, 81-83, 101-102, 134, 175, 187, 334-337, 379, 407, 422, 494, 505, 510, 513-515, 546, 619, 621, 623, 630-632, 637, 651, 656, 670, 817-1479
-----------------------------------------------------
TOTAL                     525    111    79%
----------------------------------------------------------------------
Ran 100 tests in 0.654s

FAILED (SKIP=4, failures=2)

Version-Release number of selected component: python-freezegun-0.3.11-4.fc31