dcantrell / pyparted

Python bindings for GNU parted (libparted)
GNU General Public License v2.0
85 stars 42 forks source link

tests: Relax unnecessarily-strict constraint #103

Closed cjwatson closed 1 year ago

cjwatson commented 1 year ago

Debian's parted package carries a patch to apply alignment constraints to new partitions created on fresh disks. This caused tests.test__ped_partition.PartitionMSDOSTypeIDTestCase.runTest to fail as follows:

_ped.PartitionException: Unable to satisfy all constraints on the partition.

While I realize that a Debian patch isn't strictly upstream's problem, in this case the optimal alignment constraint doesn't seem to have anything to do with what's actually being tested, so relax it to a minimal alignment constraint.

a-detiste commented 6 months ago

we need this patch in Debian to finish a release ... :-)