support python32

--HG--
branch : python32-test-fix
This commit is contained in:
Anatoly Bubenkov 2013-11-12 13:48:17 +01:00
parent a9d1f40c29
commit d18124f5ed
1 changed files with 2 additions and 2 deletions

View File

@ -46,10 +46,10 @@ class TestSetattrWithImportPath:
assert _pytest.config.Config == 42 assert _pytest.config.Config == 42
def test_unicode_string(self, monkeypatch): def test_unicode_string(self, monkeypatch):
monkeypatch.setattr(u"_pytest.config.Config", 42) monkeypatch.setattr("_pytest.config.Config", 42)
import _pytest import _pytest
assert _pytest.config.Config == 42 assert _pytest.config.Config == 42
monkeypatch.delattr(u"_pytest.config.Config") monkeypatch.delattr("_pytest.config.Config")
def test_wrong_target(self, monkeypatch): def test_wrong_target(self, monkeypatch):
pytest.raises(TypeError, lambda: monkeypatch.setattr(None, None)) pytest.raises(TypeError, lambda: monkeypatch.setattr(None, None))