X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cda441b1b6e50811c7dbd8d5c61ead1b39c91857..af6ef4aefe653ac5fd7bbd028af580ddfeb8f4d9:/sdk/python/tests/test_arv_put.py diff --git a/sdk/python/tests/test_arv_put.py b/sdk/python/tests/test_arv_put.py index b7c6ed6892..4687b4e0b6 100644 --- a/sdk/python/tests/test_arv_put.py +++ b/sdk/python/tests/test_arv_put.py @@ -12,6 +12,8 @@ import time import unittest import yaml +from cStringIO import StringIO + import arvados import arvados.commands.put as arv_put @@ -323,9 +325,10 @@ class ArvadosPutReportTest(ArvadosBaseTestCase): class ArvadosPutTest(ArvadosKeepLocalStoreTestCase): def call_main_on_test_file(self): + self.main_output = StringIO() with self.make_test_file() as testfile: path = testfile.name - arv_put.main(['--stream', '--no-progress', path]) + arv_put.main(['--stream', '--no-progress', path], self.main_output) self.assertTrue( os.path.exists(os.path.join(os.environ['KEEP_LOCAL_STORE'], '098f6bcd4621d373cade4e832627b4f6')),