summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testrepository/commands/load.py2
-rw-r--r--testrepository/tests/commands/test_load.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/testrepository/commands/load.py b/testrepository/commands/load.py
index 5af63c4..0ca4688 100644
--- a/testrepository/commands/load.py
+++ b/testrepository/commands/load.py
@@ -47,7 +47,7 @@ class InputToStreamResult(object):
char = self.source.read(1)
if not char:
return
- if char == 'a':
+ if char == b'a':
result.status(test_id='stdin', test_status='fail')
diff --git a/testrepository/tests/commands/test_load.py b/testrepository/tests/commands/test_load.py
index d3a0cbc..11c42d7 100644
--- a/testrepository/tests/commands/test_load.py
+++ b/testrepository/tests/commands/test_load.py
@@ -230,12 +230,13 @@ class TestCommandLoad(ResourcedTestCase):
ui.set_command(cmd)
cmd.repository_factory = memory.RepositoryFactory()
cmd.repository_factory.initialise(ui.here)
- self.assertEqual(1, cmd.execute())
+ ret = cmd.execute()
self.assertEqual(
[('results', Wildcard),
('summary', False, 1, None, None, None,
[('id', 0, None), ('failures', 1, None)])],
ui.outputs)
+ self.assertEqual(1, ret)
def test_partial_passed_to_repo(self):
ui = UI([('subunit', _b(''))], [('quiet', True), ('partial', True)])