Revert "Add a workaround for pytest-html surrogate issue."
This reverts commit 9c3c46f677
.
This commit is contained in:
parent
72e5df0d57
commit
591a5b8c56
@ -1146,12 +1146,10 @@ class TestFileAndUserStyleSheet:
|
||||
with pytest.raises(configexc.ValidationError):
|
||||
configtypes.File().validate('foobar')
|
||||
|
||||
UNICODE = object()
|
||||
|
||||
@pytest.mark.parametrize('configtype, value, raises', [
|
||||
(configtypes.File(), 'foobar', True),
|
||||
(configtypes.UserStyleSheet(), 'foobar', False),
|
||||
(configtypes.UserStyleSheet(), UNICODE, True),
|
||||
(configtypes.UserStyleSheet(), '\ud800', True),
|
||||
])
|
||||
def test_validate_rel_inexistent(self, os_mock, monkeypatch, configtype,
|
||||
value, raises):
|
||||
@ -1162,10 +1160,6 @@ class TestFileAndUserStyleSheet:
|
||||
os_mock.path.isabs.return_value = False
|
||||
os_mock.path.isfile.side_effect = os.path.isfile
|
||||
|
||||
if value is self.UNICODE:
|
||||
# WORKAROUND for https://github.com/davehunt/pytest-html/issues/12
|
||||
value = '\ud800'
|
||||
|
||||
if raises:
|
||||
with pytest.raises(configexc.ValidationError):
|
||||
configtype.validate(value)
|
||||
|
Loading…
Reference in New Issue
Block a user