Fix flaky test.
This commit is contained in:
parent
8d66cb3a96
commit
f09541e17d
32
0001-TST-Ensure-dot-results-are-placed-in-unique-files.patch
Normal file
32
0001-TST-Ensure-dot-results-are-placed-in-unique-files.patch
Normal file
@ -0,0 +1,32 @@
|
||||
From 2a25faa11dd3fa5fac3e713cbf9e6e76e755c122 Mon Sep 17 00:00:00 2001
|
||||
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||
Date: Fri, 21 Feb 2020 04:46:29 -0500
|
||||
Subject: [PATCH] TST: Ensure dot results are placed in unique files.
|
||||
|
||||
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||
---
|
||||
dask/tests/test_dot.py | 7 +++----
|
||||
1 file changed, 3 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/dask/tests/test_dot.py b/dask/tests/test_dot.py
|
||||
index 0fb245d4..a069878c 100644
|
||||
--- a/dask/tests/test_dot.py
|
||||
+++ b/dask/tests/test_dot.py
|
||||
@@ -217,11 +217,10 @@ def test_dot_graph_defaults():
|
||||
),
|
||||
],
|
||||
)
|
||||
-def test_filenames_and_formats(filename, format, target, expected_result_type):
|
||||
- result = dot_graph(dsk, filename=filename, format=format)
|
||||
- assert os.path.isfile(target)
|
||||
+def test_filenames_and_formats(tmpdir, filename, format, target, expected_result_type):
|
||||
+ result = dot_graph(dsk, filename=str(tmpdir.join(filename)), format=format)
|
||||
+ assert tmpdir.join(target).exists()
|
||||
assert isinstance(result, expected_result_type)
|
||||
- ensure_not_exists(target)
|
||||
|
||||
|
||||
def test_delayed_kwargs_apply():
|
||||
--
|
||||
2.21.1
|
||||
|
@ -13,6 +13,8 @@ Summary: Parallel PyData with Task Scheduling
|
||||
License: BSD
|
||||
URL: https://github.com/dask/dask/
|
||||
Source0: %pypi_source
|
||||
# https://github.com/dask/dask/pull/5937
|
||||
Patch0001: 0001-TST-Ensure-dot-results-are-placed-in-unique-files.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -215,6 +217,7 @@ export PYTHONDONTWRITEBYTECODE=1
|
||||
%changelog
|
||||
* Fri Feb 21 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.11.0-3
|
||||
- Fix typo in dependency
|
||||
- Fix flaky test
|
||||
|
||||
* Wed Feb 19 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.11.0-2
|
||||
- Fix minimum dependency versions
|
||||
|
Loading…
Reference in New Issue
Block a user