File PR-8.patch of Package python-testresources
From c308ca14278da92c657c1a3a079fafb93443e0f0 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free@ekanayaka.io>
Date: Sat, 26 Nov 2016 15:37:57 +0000
Subject: [PATCH] Skip flaky testBasicSortTests on Python 3
---
setup.cfg | 1 +
testresources/tests/test_optimising_test_suite.py | 2 ++
2 files changed, 3 insertions(+)
Index: testresources-2.0.1/setup.cfg
===================================================================
--- testresources-2.0.1.orig/setup.cfg
+++ testresources-2.0.1/setup.cfg
@@ -19,7 +19,8 @@ classifier =
Topic :: Software Development :: Testing
[extras]
-test =
+test =
+ six
docutils
fixtures
testtools
Index: testresources-2.0.1/testresources/tests/test_optimising_test_suite.py
===================================================================
--- testresources-2.0.1.orig/testresources/tests/test_optimising_test_suite.py
+++ testresources-2.0.1/testresources/tests/test_optimising_test_suite.py
@@ -15,6 +15,7 @@
# license.
#
+import six
import testtools
import random
import testresources
@@ -498,6 +499,7 @@ class TestGraphStuff(testtools.TestCase)
permutations.append([case4, case1, case3, case2])
return permutations
+ @unittest2.skipIf(six.PY3, "Flaky on Python 3, see LP #1645008")
def testBasicSortTests(self):
# Test every permutation of inputs, with legacy tests.
# Cannot use equal costs because of the use of