Hello community,
here is the log from the commit of package python-dogpile.cache for
openSUSE:Factory checked in at 2018-02-19 13:02:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-dogpile.cache (Old)
and /work/SRC/openSUSE:Factory/.python-dogpile.cache.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dogpile.cache"
Mon Feb 19 13:02:07 2018 rev:16 rq:577786 version:0.6.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-dogpile.cache/python-dogpile.cache.changes
2017-11-09 14:06:57.875074850 +0100
+++
/work/SRC/openSUSE:Factory/.python-dogpile.cache.new/python-dogpile.cache.changes
2018-02-19 13:02:21.471069460 +0100
@@ -1,0 +2,5 @@
+Sun Feb 18 17:35:00 UTC 2018 - [email protected]
+
+- add dogpile-threading.patch
+
+-------------------------------------------------------------------
New:
----
dogpile-threading.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-dogpile.cache.spec ++++++
--- /var/tmp/diff_new_pack.eCp0Px/_old 2018-02-19 13:02:22.443034407 +0100
+++ /var/tmp/diff_new_pack.eCp0Px/_new 2018-02-19 13:02:22.451034119 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-dogpile.cache
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@
Group: Development/Languages/Python
Url: http://bitbucket.org/zzzeek/dogpile.cache
Source:
https://pypi.io/packages/source/d/dogpile.cache/dogpile.cache-%{version}.tar.gz
+Patch0: dogpile-threading.patch
BuildRequires: %{python_module Mako}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module mock}
@@ -55,6 +56,7 @@
%prep
%setup -q -n dogpile.cache-%{version}
+%patch0 -p1
%build
%python_build
++++++ dogpile-threading.patch ++++++
>From 15fe0d5285b96fcf2472d2c2cdd056b9f91a1290 Mon Sep 17 00:00:00 2001
From: Mike Bayer <[email protected]>
Date: Tue, 4 Jul 2017 10:21:40 -0400
Subject: [PATCH] - ensure all threads in thread local test stay up until a
flag is set. fixes #116
Change-Id: Ic8f781d31ac35372f4fec06b9f98f65a750e6c2e
---
tests/cache/test_memcached_backend.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/tests/cache/test_memcached_backend.py
b/tests/cache/test_memcached_backend.py
index 9b83e7d..3793d27 100644
--- a/tests/cache/test_memcached_backend.py
+++ b/tests/cache/test_memcached_backend.py
@@ -286,14 +286,18 @@ class LocalThreadTest(TestCase):
backend = MockGenericMemcachedBackend(arguments={'url': 'foo'})
canary = []
- def f():
+ flag = [False]
+
+ def f(delay):
backend._clients.memcached
canary.append(MockClient.number_of_clients())
- time.sleep(.05)
+ while not flag[0]:
+ time.sleep(.02)
- threads = [Thread(target=f) for i in range(count)]
+ threads = [Thread(target=f, args=(count - i, )) for i in range(count)]
for t in threads:
t.start()
+ flag[0] = True
for t in threads:
t.join()
eq_(canary, [i + 1 for i in range(count)])
--
2.7.4.1.g5468f9e