Bug 1410240 - python26 FTBFS in rawhide
Summary: python26 FTBFS in rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python26
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Charalampos Stratakis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-04 21:17 UTC by Miro Hrončok
Modified: 2017-02-16 14:49 UTC (History)
3 users (show)

Fixed In Version: python26-2.6.9-6.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-16 14:49:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2017-01-04 21:17:09 UTC
======================================================================
ERROR: test_close_open (test.test_file.FileThreadingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-2.6.9/Lib/test/test_file.py", line 496, in test_close_open
    self._test_close_open_io(io_func)
  File "/builddir/build/BUILD/Python-2.6.9/Lib/test/test_file.py", line 490, in _test_close_open_io
    percent = 100. - 100.*self.close_success_count/self.close_count
ZeroDivisionError: float division
----------------------------------------------------------------------
Ran 37 tests in 57.915s
FAILED (errors=1)
test test_file failed -- Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-2.6.9/Lib/test/test_file.py", line 496, in test_close_open
    self._test_close_open_io(io_func)
  File "/builddir/build/BUILD/Python-2.6.9/Lib/test/test_file.py", line 490, in _test_close_open_io
    percent = 100. - 100.*self.close_success_count/self.close_count
ZeroDivisionError: float division

https://koji.fedoraproject.org/koji/taskinfo?taskID=17164035

Comment 1 Charalampos Stratakis 2017-02-16 13:47:16 UTC
Current error:

FAIL: CheckOpcodeCount (sqlite3.test.hooks.ProgressTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-2.6.9/Lib/sqlite3/test/hooks.py", line 146, in CheckOpcodeCount
    self.failUnless(first_count > second_count)
AssertionError


It is fixed by backporting https://hg.python.org/cpython/rev/1763e27a182d for Python 2.6 and since these assertions (assertGreater and assertGreaterEqual) did not exist till Python 2.7 then

self.failUnless(first_count > second_count)

will have to be changed to:

self.failUnless(first_count >= second_count)


Note You need to log in before you can comment on or make changes to this bug.