Date: Tuesday, July 3, 2018 @ 10:13:43 Author: foutrelis Revision: 350732
Fix tests Added: python-plop/trunk/disable-flaky-threaded-test.patch Modified: python-plop/trunk/PKGBUILD -----------------------------------+ PKGBUILD | 9 +++++++-- disable-flaky-threaded-test.patch | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-07-03 10:04:05 UTC (rev 350731) +++ PKGBUILD 2018-07-03 10:13:43 UTC (rev 350732) @@ -11,10 +11,15 @@ url="https://github.com/bdarnell/plop" makedepends=('python-tornado' 'python2-tornado' 'python-six' 'python2-six' 'python-setuptools' 'python2-setuptools') -source=("https://pypi.python.org/packages/source/p/plop/plop-${pkgver}.tar.gz") -md5sums=('4a313d6a8dd59ac48cfa3af426d197fc') +source=("https://pypi.python.org/packages/source/p/plop/plop-${pkgver}.tar.gz" + disable-flaky-threaded-test.patch) +md5sums=('4a313d6a8dd59ac48cfa3af426d197fc' + '1d9dc194b65a08f877506b5c5098c251') prepare() { + patch -d plop-$pkgver -Np1 < disable-flaky-threaded-test.patch + # tornado.testing.LogTrapTestCase was removed in Tornado 5.0 + sed -i 's/LogTrapTestCase/ExpectLog/' plop-$pkgver/plop/test/callgraph_test.py cp -a plop-$pkgver{,-py2} } Added: disable-flaky-threaded-test.patch =================================================================== --- disable-flaky-threaded-test.patch (rev 0) +++ disable-flaky-threaded-test.patch 2018-07-03 10:13:43 UTC (rev 350732) @@ -0,0 +1,23 @@ +From 99602f63ecabc3533439b7c8af5b09d7f793c4fb Mon Sep 17 00:00:00 2001 +From: Ben Darnell <b...@bendarnell.com> +Date: Sat, 13 Feb 2016 19:06:05 -0500 +Subject: [PATCH] Disable flaky threaded test + +--- + plop/test/collector_test.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/plop/test/collector_test.py b/plop/test/collector_test.py +index d5e22c7..12270cb 100644 +--- a/plop/test/collector_test.py ++++ b/plop/test/collector_test.py +@@ -76,7 +76,8 @@ def c(end): + time_per_sample = float(collector.sample_time) / collector.samples_taken + self.assertTrue(time_per_sample < 0.000100, time_per_sample) + +- def test_collect_threads(self): ++ # TODO: any way to make this test not flaky? ++ def disabled_test_collect_threads(self): + start = time.time() + def a(end): + while time.time() < end: pass