aboutsummaryrefslogtreecommitdiff
path: root/tests/test_pkg.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-02-24 20:04:03 +0100
committerGuido Günther <agx@sigxcpu.org>2016-02-24 20:04:03 +0100
commit4e704c27a7014d0b1cd660b9f5c233787a798c14 (patch)
tree28fdf35c22d5fbdfe310a427c90e9c31ae86744e /tests/test_pkg.py
parenta2e8aeb34bc615cc9c0082951721971bb141f20a (diff)
parent11ca10034c04267da8b00d2ef940b0548a13ef42 (diff)
Merge branch 'master' into debian/master
Diffstat (limited to 'tests/test_pkg.py')
-rw-r--r--tests/test_pkg.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_pkg.py b/tests/test_pkg.py
index 8006b19..b7707b8 100644
--- a/tests/test_pkg.py
+++ b/tests/test_pkg.py
@@ -40,8 +40,8 @@ class TestPkg(unittest.TestCase):
p._list_contents = '/does/not/matter'
PopenMock = mock.return_value
PopenMock.communicate.return_value = [
- '/package/content',
- '/more/package/content',
+ b'/package/content',
+ b'/more/package/content',
]
PopenMock.returncode = 0
result = p._get_contents()
@@ -62,11 +62,11 @@ class TestPkg(unittest.TestCase):
p = Pkg('doesnotmatter')
p._list_contents = '/does/not/matter'
PopenMock = mock.return_value
- PopenMock.communicate.return_value = ['\n'.join([
- '/lib/foo.so.1',
- '/lib/bar.so',
- '/not/a/shared/object',
- '/not/a/shared/object.soeither',
+ PopenMock.communicate.return_value = [b'\n'.join([
+ b'/lib/foo.so.1',
+ b'/lib/bar.so',
+ b'/not/a/shared/object',
+ b'/not/a/shared/object.soeither',
])]
PopenMock.returncode = 0
result = p.shared_objects