From 28435d65c16dc3a3ac1c3433f461a48384031b2d Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Sun, 10 Jan 2021 20:16:25 -0500 Subject: [PATCH] test the SUT --- src/allmydata/test/test_windows.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/test_windows.py b/src/allmydata/test/test_windows.py index 63bb3c09e..c91a2d462 100644 --- a/src/allmydata/test/test_windows.py +++ b/src/allmydata/test/test_windows.py @@ -101,10 +101,12 @@ class GetArgvTests(SyncTestCase): # file I/O is relatively simple and well-understood. f.write(dedent( """ - import sys + from allmydata.windows.fixups import ( + get_argv, + ) import json with open({!r}, "wt") as f: - f.write(json.dumps(sys.argv)) + f.write(json.dumps(get_argv())) """.format(saved_argv_path.path)), ) # Python 2.7 doesn't have good options for launching a process with