1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/changeset/6ecdb48a6121/ changeset: 6ecdb48a6121 user: RonnyPfannschmidt date: 2011-11-14 17:51:12 summary: test and fix pastebin xmlrpc import name missmatch, fixes #87 affected #: 2 files diff -r 9f8512dc3ee8f76491d39f3283642e4833c6e99c -r 6ecdb48a61216dc23007c27750c7e35a8bcfc9f4 _pytest/pastebin.py --- a/_pytest/pastebin.py +++ b/_pytest/pastebin.py @@ -38,7 +38,11 @@ del tr._tw.__dict__['write'] def getproxy(): - return py.std.xmlrpclib.ServerProxy(url.xmlrpc).pastes + if sys.version_info < (3, 0): + from xmlrpclib import ServerProxy + else: + from xmlrpc.client import ServerProxy + return ServerProxy(url.xmlrpc).pastes def pytest_terminal_summary(terminalreporter): if terminalreporter.config.option.pastebin != "failed": diff -r 9f8512dc3ee8f76491d39f3283642e4833c6e99c -r 6ecdb48a61216dc23007c27750c7e35a8bcfc9f4 testing/test_pastebin.py --- a/testing/test_pastebin.py +++ b/testing/test_pastebin.py @@ -1,3 +1,4 @@ +import pytest class TestPasting: def pytest_funcarg__pastebinlist(self, request): @@ -45,3 +46,14 @@ for x in 'test_fail test_skip skipped'.split(): assert s.find(x), (s, x) + +class TestRPCClient: + def pytest_funcarg__pastebin(self, request): + return request.config.pluginmanager.getplugin('pastebin') + + def test_getproxy(self, pastebin): + proxy = pastebin.getproxy() + assert proxy is not None + assert proxy.__class__.__module__.startswith('xmlrpc') + + Repository URL: https://bitbucket.org/hpk42/pytest/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn