forked from pool/python-parted
- update to 3.11.7:
* Do not remove the generated tarballs. * Update the RELEASE file. * tests: Fix flag_get_name tests * Avoid potential NULL dereferences in pydisk.c and pytimer.c * New - example to query device capacity * correct spelling mistake * Make the partition name a property on parted.Partition objects * 'from collections' -> 'from collections.abc' * Add some more examples * Small correction to the PED_EXCEPTION_FIX handling. * Restore returning None for get_name * Handle PED_EXCEPTION_FIX * check for undefined flags * added support for newer pyparted versions * Support pypi.python.org for releases * Forgot the "/" in the path name * Remove assumption that temp devices get created in /tmp * Adjust test case numbers for GeometryWriteTestCase again * Revert "Use copy.deepcopy() rather than .duplicate()" * Remove another unnecessary os.close() from baseclass.py * Remove rogue close() call in baseclass.py * Ignore the 'const' and just use these values as 'char *' * Use copy.deepcopy * More file descriptor close statements. * Fixes for the RequiresDeviceNode class * Use a smaller length for GeometryWriteTestCase * Close the RequiresDeviceNode file descriptor before removal. * Fix writing NULL sectors using a Geometry object * Use Decimal OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=12
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
Index: pyparted-3.11.1/tests/baseclass.py
|
||||
Index: pyparted-3.11.7/tests/baseclass.py
|
||||
===================================================================
|
||||
--- pyparted-3.11.1.orig/tests/baseclass.py
|
||||
+++ pyparted-3.11.1/tests/baseclass.py
|
||||
@@ -68,7 +68,7 @@ class RequiresFileSystem(unittest.TestCa
|
||||
os.write(fd, b"0")
|
||||
f.close()
|
||||
--- pyparted-3.11.7.orig/tests/baseclass.py
|
||||
+++ pyparted-3.11.7/tests/baseclass.py
|
||||
@@ -72,7 +72,7 @@ class RequiresFileSystem(unittest.TestCa
|
||||
os.write(self.fd, b"0")
|
||||
self.f.close()
|
||||
|
||||
- os.system("mke2fs -F -q %s" % (self.path,))
|
||||
+ os.system("/usr/sbin/mke2fs -F -q %s" % (self.path,))
|
||||
|
||||
self._device = _ped.device_get(self.path)
|
||||
self._geometry = _ped.Geometry(self._device, 0, self._device.length - 1)
|
||||
@@ -133,7 +133,7 @@ class RequiresDeviceAlignment(RequiresDe
|
||||
@@ -137,7 +137,7 @@ class RequiresDeviceAlignment(RequiresDe
|
||||
class RequiresLabeledDevice(RequiresDevice):
|
||||
def setUp(self):
|
||||
RequiresDevice.setUp(self)
|
||||
@@ -20,7 +20,7 @@ Index: pyparted-3.11.1/tests/baseclass.py
|
||||
|
||||
# Base class for any test case that requires a _ped.Disk or parted.Disk.
|
||||
class RequiresDisk(RequiresDevice):
|
||||
@@ -150,7 +150,7 @@ class RequiresMount(RequiresDevice):
|
||||
@@ -161,7 +161,7 @@ class RequiresMount(RequiresDevice):
|
||||
self.mountpoint = None
|
||||
|
||||
def mkfs(self):
|
||||
|
||||
Reference in New Issue
Block a user