rpm-software-management / urlgrabber

GNU Lesser General Public License v2.1
14 stars 23 forks source link

unit test failure: test client-side processing of HTTP ranges #29

Open wimmuskee opened 4 years ago

wimmuskee commented 4 years ago

Executing the unittests provides a failure. Tested on Python 3.6-3.9.

$ cd /your/git/checkout $ git rev-parse HEAD 16013708da1307b80f5cdd45cdb18c28ac51340d $ PYTHONPATH=$PWD URLGRABBER_EXT_DOWN=scripts/urlgrabber-ext-down python test/runtests.py -v 1

.......s.......ss.ss....sssss.......s.....................F...
===============================================================================
FAIL: test client-side processing of HTTP ranges
-------------------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_mirror.py", line 342, in test_range
    self.assertEqual(data, b'DE')
  File "/var/opt/wim/git/hub/upstream/urlgrabber/test/munittest.py", line 381, in failUnlessEqual
    raise self.failureException(msg or '%r != %r' % (first, second))
AssertionError: b'ABCDEF' != b'DE'

-------------------------------------------------------------------------------
Ran 62 tests in 1.743s

FAILED (failures=1, skipped=11)