Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 286f4ff

Browse files
committed
Merge pull request #104 from Nurdok/win-tests
Make tests pass on Windows
2 parents 00007ee + 697bb52 commit 286f4ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test_pep257.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ def open(self, path, *args, **kwargs):
5151
def invoke_pep257(self, args=""):
5252
"""Run pep257.py on the environment base folder with the given args."""
5353
pep257_location = os.path.join(os.path.dirname(__file__), 'pep257')
54-
cmd = shlex.split("{0} {1} {2}"
55-
.format(pep257_location, self.tempdir, args))
54+
cmd = shlex.split("python {0} {1} {2}"
55+
.format(pep257_location, self.tempdir, args),
56+
posix=False)
5657
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
5758
stderr=subprocess.PIPE)
5859
out, err = p.communicate()
@@ -142,4 +143,4 @@ def foo():
142143
"""))
143144

144145
out, err = env.invoke_pep257(args='--count')
145-
assert out == '2\n'
146+
assert '2' in out

0 commit comments

Comments
 (0)