| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
RuntimeError: OrderedDict mutated during iteration
|
| |
|
| |
|
|
|
|
| |
This should make it easier to work with cubicweb-ctl i18cube command for instance.
|
|
|
|
|
|
|
| |
This allows client libraries to avoid importing pytest module which has
spurious monkeypatches of unittest.
Drop deprecated API about coverage control.
|
|
|
|
| |
float is the default type used in apply_units.
|
|
|
|
| |
closes #XXX
|
|
|
|
|
| |
Add tests for UMessage.get_payload() (taken from CubicWeb).
Closes #1716128.
|
|
|
|
| |
Related to #1716128.
|
|
|
|
|
|
|
|
| |
We sometimes get unicode objects out of that function, on which
.decode() obviously fails. Upstream has apparently not to fix the
existing function, so let's handle it ourselves.
Tests are taken from CubicWeb. Related to #1716128.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Closes #1716053.
|
|
|
|
| |
Closes #1716420.
|
| |
|
|
|
|
|
|
| |
acquire_lock is racy on Unix (TOCTOU) and broken on Windows (lock file
is removed instantly since ProcInfo always raises NoSuchProcess on this
OS).
|
|
|
|
|
| |
Including those that are already defined in unittest2 >= 0.5.1.
Closes #1716063.
|
|
|
|
| |
It's been deprecated for 5 years, let it go. Related to #1716063.
|
|
|
|
|
|
| |
Useful when generating a default configuration file, like pylint's.
Fix provided by Craig Hobbs <craigahobbs@gmail.com>
|
|
|
|
| |
To help spot tests that are not fully independent of one another.
|
|
|
|
| |
Pylint before 1.4.4 reads our version from there, let's not break it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
#294756)
Virtualenv symlinks a bunch of stdlib modules which confuse
modutils.is_standard_module. The better way would obviously be to fix
modutils to properly detect virtualenvs, but life is too short.
As for why virtualenv actually needs to symlink a good chunk of the
stdlib, anyone's guess is as good as mine. Here's the upstream commit
that added hashlib.py to the list of needed symlinks:
https://github.com/pypa/virtualenv/commit/10ba3f3cc0d7a254dd72e2bb9557006da2f85e00#diff-7e83770aa980bd4327db90f4eafeffdfR126
And for the record, 'venv' (the virtualenv-lookalike shipped since
python 3.3) does not do _any_ symlink to stdlib modules.
|
|
|
|
| |
It's spring^Wsummer cleaning time.
|
|
|
|
|
| |
setup_module() and teardown_module() support have been deprecated 4
years ago in commit 06755c704e60.
|
| |
|
|
|
|
|
|
|
|
| |
type(x | y) where type(x) is a subclass of set is now set, not type(x).
See http://bugs.python.org/issue1721812
Related to #105845.
|
|
|
|
|
|
| |
The latter does not exist in python 3.
Related to #105845.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Quoting `pydoc __import__`: "When importing a module from a package,
note that __import__('A.B', ...) returns package A".
`importlib.import_module` will always return module A.B in this respect.
The underlying problem is that, when running test using something else
than pytest this `__import__` call will generate wrong results. For
instance, considering from CubicWeb tests, running:
python -m unittest cubicweb.test.unittest_cwconfig.CubicWebConfigurationTC.test_appobjects_path
__import__('cubicweb.test.unittest_cwconfig') will return the 'cubicweb'
module, not 'cubicweb.test.unittest_cwconfig'.
Since the module is imported (`cls` is a subclass coming from it), we
can just look it up in sys.modules.
This is part of an attempt to use something else than pytest to run
tests in CubicWeb.
|
|
|
|
|
| |
- stop installing __pkginfo__ (move it back to root dir)
- adapt all packaging to use setuptools
|
| |
|
|
|
|
|
| |
BUILTIN_MODULES could actually be just a set, but I'm not sure what the
API implications are, so let's keep it as a dict.
|
|
|
|
|
|
| |
Nested namespaces (zope is a big fan) probably don't work.
Closes #122443.
|
| |
|
| |
|
|
The logilab.common package now lives in a logilab/common directory to make it pip compliant.
Related to #294479.
|