aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests/unit/core/test_unit.py
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/tests/unit/core/test_unit.py')
-rw-r--r--xtesting/tests/unit/core/test_unit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtesting/tests/unit/core/test_unit.py b/xtesting/tests/unit/core/test_unit.py
index 0af3ddca..3be41442 100644
--- a/xtesting/tests/unit/core/test_unit.py
+++ b/xtesting/tests/unit/core/test_unit.py
@@ -34,7 +34,7 @@ class SuiteTesting(unittest.TestCase):
@mock.patch('subprocess.Popen',
return_value=mock.Mock(
- communicate=mock.Mock(return_value=("foo", "bar"))))
+ communicate=mock.Mock(return_value=(b"foo", b"bar"))))
def test_generate_stats_ok(self, *args):
stream = six.StringIO()
self.psrunner.generate_stats(stream)
@@ -57,7 +57,7 @@ class SuiteTesting(unittest.TestCase):
@mock.patch('subprocess.Popen',
return_value=mock.Mock(
- communicate=mock.Mock(return_value=("foo", "bar"))))
+ communicate=mock.Mock(return_value=(b"foo", b"bar"))))
def test_generate_xunit_ok(self, *args):
stream = six.BytesIO()
with mock.patch('six.moves.builtins.open',