summaryrefslogtreecommitdiff
path: root/test/backtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/backtest.py')
-rw-r--r--test/backtest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/backtest.py b/test/backtest.py
index e8d8366d..b17aa242 100644
--- a/test/backtest.py
+++ b/test/backtest.py
@@ -1,6 +1,6 @@
"""Add things to old Pythons so I can pretend they are newer, for tests."""
-# pylint: disable-msg=W0622
+# pylint: disable=W0622
# (Redefining built-in blah)
# The whole point of this file is to redefine built-ins, so shut up about it.
@@ -30,10 +30,10 @@ else:
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT
)
- status = proc.wait()
+ output, _ = proc.communicate()
+ status = proc.returncode # pylint: disable=E1101
# Get the output, and canonicalize it to strings with newlines.
- output = proc.stdout.read()
if not isinstance(output, str):
output = output.decode('utf-8')
output = output.replace('\r', '')