From 7599f4d50ac860d82e72e66aa5888f10dc4659a4 Mon Sep 17 00:00:00 2001 From: Dan Passaro Date: Tue, 12 Jul 2016 13:59:45 -0400 Subject: [PATCH] Fix Py3 tests using b'' literal --- tests/integration/test_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_config.py b/tests/integration/test_config.py index 1755385..7974260 100644 --- a/tests/integration/test_config.py +++ b/tests/integration/test_config.py @@ -67,7 +67,7 @@ def test_dont_record_on_exception(tmpdir): @my_vcr.use_cassette(str(tmpdir.join('dontsave.yml'))) def some_test(): - assert 'Not in content' in urlopen('http://httpbin.org/get') + assert b'Not in content' in urlopen('http://httpbin.org/get') with pytest.raises(AssertionError): some_test() @@ -77,6 +77,6 @@ def test_dont_record_on_exception(tmpdir): # Make sure context decorator has the same behavior with pytest.raises(AssertionError): with my_vcr.use_cassette(str(tmpdir.join('dontsave2.yml'))): - assert 'Not in content' in urlopen('http://httpbin.org/get').read() + assert b'Not in content' in urlopen('http://httpbin.org/get').read() assert not os.path.exists(str(tmpdir.join('dontsave2.yml')))