fixed 908879 3.11.2-3
thanks

I am fixing what I did. It is registered that a fix was done by
skipping (empty override) the tests.

The fix for 'No module named _ped' was in version 3.11.2-3 when
a patch[0] from Steve Langasek added the deps to build the _ped 
module. Here is the debian/changelog[1]:

[0] - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922081
[1] - https://tracker.debian.org/media/packages/p/pyparted/changelog-3.11.2-10

In version 3.11.2-4 I tried to run tests for py3 only but forgot to
fix the search ('find') for the specific file ('*gnu.so'). Because of 
that this[2] happened multiple times:

File "/usr/lib/python3.7/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.7/unittest/loader.py", line 377, in 
_get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/tests/test__ped_alignment.py", line 22, in <module>
    import _ped
ImportError: /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_parted/build/_ped.so: 
undefined symbol: _Py_ZeroStruct

[2] - 
https://buildd.debian.org/status/fetch.php?pkg=pyparted&arch=ia64&ver=3.11.2-5&stamp=1550014323&raw=0


I removed the wrong override in version 3.11.2-7. debhelper does a better
job doing a 'cd build dir'; 'pyX unittest discover'.

The problem now seems to be mainly in armhf (unitl now). There is a 
'Floating point exception'[3]:

[...]
runTest (tests.test_parted_disk.DiskUnsetFlagTestCase) ... ok

----------------------------------------------------------------------
Ran 273 tests in 1.568s

OK (skipped=118)

/bin/sh: line 1: 26652 Floating point exceptionpython2.7 -m unittest discover -v

[3] - 
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/armhf/pyparted.html


obs:
./src/parted/device.py:264:        return long(math.floor((float(sector) / 
(heads * sectors)) + 1))
./src/parted/device.py:271:        return long(math.ceil(float((sector + 1)) / 
(heads * sectors)))
./src/parted/device.py:299:        size = float(self.__device.length)

src/pytimer.c has float() - 222, 298

https://docs.python.org/2/library/decimal.html?highlight=floating



Regards,
Herbert

Reply via email to