summaryrefslogtreecommitdiff
path: root/dev-python/python-distutils-extra/files/python-distutils-extra-2.44-test.patch
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/python-distutils-extra/files/python-distutils-extra-2.44-test.patch
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'dev-python/python-distutils-extra/files/python-distutils-extra-2.44-test.patch')
-rw-r--r--dev-python/python-distutils-extra/files/python-distutils-extra-2.44-test.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/python-distutils-extra/files/python-distutils-extra-2.44-test.patch b/dev-python/python-distutils-extra/files/python-distutils-extra-2.44-test.patch
new file mode 100644
index 000000000000..b00fc32d017a
--- /dev/null
+++ b/dev-python/python-distutils-extra/files/python-distutils-extra-2.44-test.patch
@@ -0,0 +1,27 @@
+From 33026583f3b2f59bcc415fae4c1ae84bfd058817 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Mon, 27 Apr 2020 21:25:37 +0200
+Subject: [PATCH] test: Find .egg-info file rather than guessing path (wrong)
+
+---
+ test/auto.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/test/auto.py b/test/auto.py
+index b9644ba..1d605e6 100755
+--- a/test/auto.py
++++ b/test/auto.py
+@@ -734,7 +734,9 @@ print ('import iamnota.module')
+ # parse .egg-info
+ (o, e, s) = self.setup_py(['install_egg_info', '-d', self.install_tree])
+ self.assertEqual(e, 'ERROR: Python module unknown not found\n')
+- egg = self._installed_contents('foo-0.1.egg-info').splitlines()
++ egg_paths = [x for x in inst if x.endswith('.egg-info')]
++ self.assertEqual(len(egg_paths), 1)
++ egg = self._installed_contents(egg_paths[0].strip(os.path.sep)).splitlines()
+ self.assertIn('Name: foo', egg)
+
+ # check provides
+--
+2.26.2
+