Remove u'' literal in test_color_{yes,no} for Python 3.2 compat
--HG-- branch : color_option
This commit is contained in:
parent
60f5b15f20
commit
0278dc9b6f
|
@ -502,13 +502,13 @@ def test_color_yes(testdir):
|
||||||
testdir.makepyfile("def test_this(): assert 1")
|
testdir.makepyfile("def test_this(): assert 1")
|
||||||
result = testdir.runpytest('--color=yes')
|
result = testdir.runpytest('--color=yes')
|
||||||
assert 'test session starts' in result.stdout.str()
|
assert 'test session starts' in result.stdout.str()
|
||||||
assert u'\x1b[1m' in result.stdout.str()
|
assert '\x1b[1m' in result.stdout.str()
|
||||||
|
|
||||||
def test_color_no(testdir):
|
def test_color_no(testdir):
|
||||||
testdir.makepyfile("def test_this(): assert 1")
|
testdir.makepyfile("def test_this(): assert 1")
|
||||||
result = testdir.runpytest('--color=no')
|
result = testdir.runpytest('--color=no')
|
||||||
assert 'test session starts' in result.stdout.str()
|
assert 'test session starts' in result.stdout.str()
|
||||||
assert u'\x1b[1m' not in result.stdout.str()
|
assert '\x1b[1m' not in result.stdout.str()
|
||||||
|
|
||||||
def test_getreportopt():
|
def test_getreportopt():
|
||||||
class config:
|
class config:
|
||||||
|
|
Loading…
Reference in New Issue