summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-05-27 07:57:26 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-27 08:10:34 +0200
commit3e0779ef01cda614df7313fecbad343475b32746 (patch)
tree99b9383711994e8ad7ea3f4ea39ac24dbec5a8bd /dev-python/lockfile/files
parentdev-python/trimesh: Bump to 3.12.5 (diff)
downloadgentoo-3e0779ef01cda614df7313fecbad343475b32746.tar.gz
gentoo-3e0779ef01cda614df7313fecbad343475b32746.tar.bz2
gentoo-3e0779ef01cda614df7313fecbad343475b32746.zip
dev-python/lockfile: Use PEP517 build
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/lockfile/files')
-rw-r--r--dev-python/lockfile/files/lockfile-0.12.2-pytest.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-python/lockfile/files/lockfile-0.12.2-pytest.patch b/dev-python/lockfile/files/lockfile-0.12.2-pytest.patch
new file mode 100644
index 000000000000..47362a4de6a0
--- /dev/null
+++ b/dev-python/lockfile/files/lockfile-0.12.2-pytest.patch
@@ -0,0 +1,20 @@
+diff -dup -r lockfile-0.12.2/test/compliancetest.py lockfile-0.12.2.new/test/compliancetest.py
+--- lockfile-0.12.2/test/compliancetest.py 2015-11-25 19:29:13.000000000 +0100
++++ lockfile-0.12.2.new/test/compliancetest.py 2022-05-27 07:55:43.720523461 +0200
+@@ -6,15 +6,13 @@ import lockfile
+
+
+ class ComplianceTest(object):
+- def __init__(self):
+- self.saved_class = lockfile.LockFile
+-
+ def _testfile(self):
+ """Return platform-appropriate file. Helper for tests."""
+ import tempfile
+ return os.path.join(tempfile.gettempdir(), 'trash-%s' % os.getpid())
+
+ def setup(self):
++ self.saved_class = lockfile.LockFile
+ lockfile.LockFile = self.class_to_test
+
+ def teardown(self):