From 7bc9c63c9da678a7e6fceb095d56c634afd22c56 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 15 Dec 2019 18:09:03 +0000 Subject: gentoo resync : 15.12.2019 --- .../files/pytest-services-2.0.1-lockdir.patch | 23 ++++++++++++++++++++ .../files/pytest-services-2.0.1-no-mysql.patch | 25 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch create mode 100644 dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch (limited to 'dev-python/pytest-services/files') diff --git a/dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch b/dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch new file mode 100644 index 000000000000..0ecf7be8c3c0 --- /dev/null +++ b/dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch @@ -0,0 +1,23 @@ +diff -ur pytest-services-2.0.1.orig/pytest_services/folders.py pytest-services-2.0.1/pytest_services/folders.py +--- pytest-services-2.0.1.orig/pytest_services/folders.py 2019-11-12 13:04:01.000000000 -0800 ++++ pytest-services-2.0.1/pytest_services/folders.py 2019-11-20 23:26:55.760949590 -0800 +@@ -9,7 +9,7 @@ + @pytest.fixture(scope='session') + def root_dir(): + """The parent directory of the test base artifact directory.""" +- return '/tmp' ++ return os.getenv("TMPDIR") or '/tmp' + + + @pytest.yield_fixture(scope='session') +@@ -47,7 +47,8 @@ + def memory_root_dir(root_dir): + """The parent directory of the test artifact directory in memory.""" + # check for a free space for at least 8 parallel processes +- if os.path.exists('/dev/shm') and psutil.disk_usage('/dev/shm').free > 1024 * 1024 * 64 * 10: ++ if os.path.exists('/dev/shm') and psutil.disk_usage('/dev/shm').free > 1024 * 1024 * 64 * 10 \ ++ and os.access('/dev/shm', os.W_OK): + return '/dev/shm' + return root_dir + +Only in pytest-services-2.0.1/pytest_services: .folders.py.un~ diff --git a/dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch b/dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch new file mode 100644 index 000000000000..2a86f5110d5e --- /dev/null +++ b/dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch @@ -0,0 +1,25 @@ +diff -ur pytest-services-2.0.1.orig/tests/test_plugin.py pytest-services-2.0.1/tests/test_plugin.py +--- pytest-services-2.0.1.orig/tests/test_plugin.py 2019-11-12 13:04:01.000000000 -0800 ++++ pytest-services-2.0.1/tests/test_plugin.py 2019-11-20 19:28:17.789932680 -0800 +@@ -3,7 +3,6 @@ + import socket + + import pylibmc +-import MySQLdb + + + def test_memcached(request, memcached, memcached_socket): +@@ -17,12 +16,6 @@ + assert mc.get('some') is None + + +-def test_mysql(mysql, mysql_connection, mysql_socket): +- """Test mysql service.""" +- conn = MySQLdb.connect(user='root', unix_socket=mysql_socket) +- assert conn +- +- + def test_xvfb(xvfb, xvfb_display): + """Test xvfb service.""" + socket.create_connection(('127.0.0.1', 6000 + xvfb_display)) +Only in pytest-services-2.0.1/tests: .test_plugin.py.un~ -- cgit v1.2.3