mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-13 15:46:25 +00:00
try to get the child source right
This commit is contained in:
parent
b02b930eed
commit
6091ca2164
@ -26,7 +26,9 @@ from sys import (
|
||||
from json import (
|
||||
load,
|
||||
)
|
||||
|
||||
from textwrap import (
|
||||
dedent,
|
||||
)
|
||||
from twisted.python.filepath import (
|
||||
FilePath,
|
||||
)
|
||||
@ -95,13 +97,13 @@ class GetArgvTests(SyncTestCase):
|
||||
save_argv = FilePath(self.mktemp())
|
||||
saved_argv_path = FilePath(self.mktemp())
|
||||
with open(save_argv.path, "wt") as f:
|
||||
f.write(
|
||||
f.write(dedent(
|
||||
"""
|
||||
import sys
|
||||
import json
|
||||
with open({!r}, "wt") as f:
|
||||
f.write(json.dumps(sys.argv))
|
||||
""".format(saved_argv_path.path),
|
||||
""".format(saved_argv_path.path)),
|
||||
)
|
||||
check_call([
|
||||
executable,
|
||||
|
Loading…
x
Reference in New Issue
Block a user