diff options
author | holger krekel <holger@merlinux.eu> | 2013-11-13 07:43:35 +0100 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2013-11-13 07:43:35 +0100 |
commit | 3f389238f89c0074fa2534ec2f518574aa174003 (patch) | |
tree | 3026e449931fdcb4d273ac812dd9d2e666150eab | |
parent | a9d1f40c294e18c68ca27f03a4a8fd5614ec6298 (diff) | |
parent | d18124f5edd6797099bc6788eff7549c6dc59da8 (diff) | |
download | pytest-3f389238f89c0074fa2534ec2f518574aa174003.tar.gz |
Merged in paylogic/pytest/python32-test-fix (pull request #82)
support python32 fix
-rw-r--r-- | testing/test_monkeypatch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/test_monkeypatch.py b/testing/test_monkeypatch.py index 61a397a9c..99f77a646 100644 --- a/testing/test_monkeypatch.py +++ b/testing/test_monkeypatch.py @@ -46,10 +46,10 @@ class TestSetattrWithImportPath: assert _pytest.config.Config == 42 def test_unicode_string(self, monkeypatch): - monkeypatch.setattr(u"_pytest.config.Config", 42) + monkeypatch.setattr("_pytest.config.Config", 42) import _pytest assert _pytest.config.Config == 42 - monkeypatch.delattr(u"_pytest.config.Config") + monkeypatch.delattr("_pytest.config.Config") def test_wrong_target(self, monkeypatch): pytest.raises(TypeError, lambda: monkeypatch.setattr(None, None)) |