1 new commit in pytest: https://bitbucket.org/hpk42/pytest/commits/962999e40560/ Changeset: 962999e40560 Branch: argcomplete User: hpk42 Date: 2013-08-01 14:24:25 Summary: fix some py33 issues introduced with rev 2985 Affected #: 2 files
diff -r 5ac465ea2d438ae71524197ecfd5a8f4ce2d4d90 -r 962999e405607cd5173e900bcb732301dab1dd0f _pytest/config.py --- a/_pytest/config.py +++ b/_pytest/config.py @@ -4,7 +4,7 @@ import sys, os from _pytest.core import PluginManager import pytest -from _argcomplete import try_argcomplete, filescompleter +from _pytest._argcomplete import try_argcomplete, filescompleter # enable after some grace period for plugin writers TYPE_WARN = False @@ -142,7 +142,7 @@ 'int': int, 'string': str, } - + def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs @@ -188,7 +188,7 @@ FutureWarning, stacklevel=3) attrs['type'] = Argument._typ_map[typ] - # used in test_parseopt -> test_parse_defaultgetter + # used in test_parseopt -> test_parse_defaultgetter self.type = attrs['type'] else: self.type = typ @@ -227,7 +227,7 @@ #a = a.replace('%prog', '%(prog)s') self._attrs['help'] = a return self._attrs - + def _set_opt_strings(self, opts): """directly from optparse @@ -251,7 +251,7 @@ "must start with --, followed by non-dash" % opt, self) self._long_opts.append(opt) - + def __repr__(self): retval = 'Argument(' if self._short_opts: @@ -268,7 +268,7 @@ retval += ')' return retval - + class OptionGroup: def __init__(self, name, description="", parser=None): self.name = name @@ -320,7 +320,7 @@ getattr(args, Config._file_or_dir).extend(argv) return args - + class Conftest(object): """ the single place for accessing values and interacting towards conftest modules from py.test objects. @@ -440,7 +440,7 @@ class Config(object): """ access to configuration values, pluginmanager and plugin hooks. """ _file_or_dir = 'file_or_dir' - + def __init__(self, pluginmanager=None): #: access to command line option as attributes. #: (deprecated), use :py:func:`getoption() <_pytest.config.Config.getoption>` instead diff -r 5ac465ea2d438ae71524197ecfd5a8f4ce2d4d90 -r 962999e405607cd5173e900bcb732301dab1dd0f testing/test_parseopt.py --- a/testing/test_parseopt.py +++ b/testing/test_parseopt.py @@ -196,7 +196,7 @@ monkeypatch.setenv('COMP_LINE', "py.test " + arg) monkeypatch.setenv('COMP_POINT', str(len("py.test " + arg))) result = testdir.run('bash', str(script), arg) - print dir(result), result.ret + #print dir(result), result.ret if result.ret == 255: # argcomplete not found pytest.skip("argcomplete not available") 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. _______________________________________________ pytest-commit mailing list pytest-commit@python.org http://mail.python.org/mailman/listinfo/pytest-commit