From 77c9a2c2f55a3c47fc93924c61f039cb5021255a Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Sun, 10 Jan 2021 20:13:17 -0500 Subject: [PATCH] make the failures a little nicer --- src/allmydata/test/test_windows.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/allmydata/test/test_windows.py b/src/allmydata/test/test_windows.py index ae62af857..fc40db60c 100644 --- a/src/allmydata/test/test_windows.py +++ b/src/allmydata/test/test_windows.py @@ -84,14 +84,16 @@ class GetArgvTests(SyncTestCase): ), ) - @given(lists(text(max_size=4), max_size=4)) + @given(lists(text(min_size=1, max_size=4), min_size=1, max_size=4)) def test_argv_values(self, argv): """ ``get_argv`` returns a list representing the result of tokenizing the "command line" argument string provided to Windows processes. """ - save_argv_path = FilePath(self.mktemp()) - saved_argv_path = FilePath(self.mktemp()) + working_path = self.mktemp() + working_path.makedirs() + save_argv_path = working_path.child("script.py") + saved_argv_path = working_path.child("data.json") with open(save_argv_path.path, "wt") as f: # A simple program to save argv to a file. Using the file saves # us having to figure out how to reliably get non-ASCII back over