Skip to content

Commit

Permalink
Stop using pipes, fix write arg type.
Browse files Browse the repository at this point in the history
  • Loading branch information
porridge committed Oct 7, 2024
1 parent de86f30 commit eb9f47a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/dogtail/addtrans.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Dogtail test script for addtrans.

import os
import pipes
import shlex
import tempfile

from dogtail import config
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit eb9f47a

Please sign in to comment.