From eb9f47ae8347d1c81edd9e560d3e6711cca4a0df Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Mon, 7 Oct 2024 22:03:06 +0200 Subject: [PATCH] Stop using pipes, fix write arg type. --- tests/dogtail/addtrans.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/dogtail/addtrans.py b/tests/dogtail/addtrans.py index 15ce0ea..89933aa 100644 --- a/tests/dogtail/addtrans.py +++ b/tests/dogtail/addtrans.py @@ -2,7 +2,7 @@ # Dogtail test script for addtrans. import os -import pipes +import shlex import tempfile from dogtail import config @@ -33,11 +33,11 @@ 2015-10-05 * beer Assets:Cash -30 CHF Expenses:Drinking 30 CHF -""") +""".encode()) t.flush() t.seek(0, 0) -run('addtrans --file %s' % pipes.quote(t.name)) +run(shlex.join(['addtrans', '--file', t.name])) addtrans = tree.root.application('addtrans') mainwin = addtrans.window('Add transaction')