summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pycurl/files')
-rw-r--r--dev-python/pycurl/files/pycurl-7.19.5.1-py3.5-backport.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-python/pycurl/files/pycurl-7.19.5.1-py3.5-backport.patch b/dev-python/pycurl/files/pycurl-7.19.5.1-py3.5-backport.patch
new file mode 100644
index 000000000000..0bc6f6c3b56b
--- /dev/null
+++ b/dev-python/pycurl/files/pycurl-7.19.5.1-py3.5-backport.patch
@@ -0,0 +1,15 @@
+ tests/memory_mgmt_test.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/tests/memory_mgmt_test.py b/tests/memory_mgmt_test.py
+index 08636ae..a7b8a21 100644
+--- a/tests/memory_mgmt_test.py
++++ b/tests/memory_mgmt_test.py
+@@ -258,4 +258,6 @@ class MemoryMgmtTest(unittest.TestCase):
+
+ gc.collect()
+ new_object_count = len(gc.get_objects())
+- self.assertEqual(new_object_count, object_count)
++ # it seems that GC sometimes collects something that existed
++ # before this test ran, GH issues #273/#274
++ self.assertTrue(new_object_count in (object_count, object_count-1))