summaryrefslogtreecommitdiff
path: root/logilab
Commit message (Collapse)AuthorAgeFilesLines
* [configuration] fix crash on python 3.5debian/1.2.0-1centos/1.2.0-11.2.0Julien Cristau2016-03-151-1/+1
| | | | RuntimeError: OrderedDict mutated during iteration
* [testlib] drop unused TestCase.pdbclassJulien Cristau2015-11-051-1/+0
|
* [date] take milliseconds into account in datetime2ticksJulien Cristau2016-03-101-1/+1
|
* Add .git and .tox to STD_BLACKLISTDenis Laxalde2016-01-251-1/+1
| | | | This should make it easier to work with cubicweb-ctl i18cube command for instance.
* Move coverage utility from pytest to testlibDenis Laxalde2016-03-032-59/+37
| | | | | | | This allows client libraries to avoid importing pytest module which has spurious monkeypatches of unittest. Drop deprecated API about coverage control.
* [optik_ext] Bytes should be returned as ints, not floats (closes #2086835)Rémi Cardona2015-10-121-1/+1
| | | | float is the default type used in apply_units.
* [testlib] Stop using internal TestCase._addSkip methodRémi Cardona2015-09-211-1/+6
| | | | closes #XXX
* [umessage] Use the same code paths for both python 2 and 3Rémi Cardona2015-09-211-53/+31
| | | | | Add tests for UMessage.get_payload() (taken from CubicWeb). Closes #1716128.
* [umessage] import email exceptions from new module pathsRémi Cardona2015-09-211-2/+2
| | | | Related to #1716128.
* [umessage] Work around bug in python 3's decode_headerRémi Cardona2015-09-181-1/+10
| | | | | | | | 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.
* [umessage] Drop support for python 2.4 and earlierRémi Cardona2015-09-181-6/+2
|
* [py3k] six.integer_typesRémi Cardona2015-09-181-1/+3
|
* [modutils] Fix fd leak in load_module_from_modpathRémi Cardona2015-09-181-1/+5
|
* [testlib] remove unused and untested Mock classesRémi Cardona2015-09-181-34/+0
|
* [py3k] dict.iteritems → dict.itemsRémi Cardona2015-09-181-1/+1
|
* Move pytest-specific code from testlib to pytestRémi Cardona2015-09-112-146/+157
| | | | Closes #1716053.
* [testlib] Allow skipTest() and fail() in generative testsRémi Cardona2015-09-101-0/+5
| | | | Closes #1716420.
* [testlib] Update __all__Rémi Cardona2015-09-101-1/+1
|
* [shellutils] Remove racy file lockRémi Cardona2015-09-101-56/+0
| | | | | | acquire_lock is racy on Unix (TOCTOU) and broken on Windows (lock file is removed instantly since ProcInfo always raises NoSuchProcess on this OS).
* [testlib] Remove deprecated assert methodsRémi Cardona2015-09-101-455/+0
| | | | | Including those that are already defined in unittest2 >= 0.5.1. Closes #1716063.
* [testlib] Remove old TestCase.assertRaises codeRémi Cardona2015-09-101-47/+0
| | | | It's been deprecated for 5 years, let it go. Related to #1716063.
* [configuration] Have a stable order for sections (closes #298658)Rémi Cardona2015-07-231-1/+1
| | | | | | Useful when generating a default configuration file, like pylint's. Fix provided by Craig Hobbs <craigahobbs@gmail.com>
* [pytest] Randomize tests order when using -t (closes #295922)Rémi Cardona2015-07-011-1/+4
| | | | To help spot tests that are not fully independent of one another.
* Partially restore __pkginfo__ module (closes #295480)Julien Cristau2015-06-301-0/+8
| | | | Pylint before 1.4.4 reads our version from there, let's not break it.
* [test] Fix modutils tests when running inside a python 3 virtualenv (closes ↵Rémi Cardona2015-06-291-0/+3
| | | | | | | | | | | | | | | | | #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.
* delete unused and untested modules (closes #2402)Rémi Cardona2015-06-266-875/+0
| | | | It's spring^Wsummer cleaning time.
* [testlib] remove support for deprecated module level fixture namesDavid Douard2014-11-271-57/+0
| | | | | setup_module() and teardown_module() support have been deprecated 4 years ago in commit 06755c704e60.
* [registry] raise a typed exception rather than a bare ExceptionAurelien Campeas2014-10-071-1/+7
|
* [testlib] Deal with set binary operator changes from python 3Rémi Cardona2015-06-251-0/+3
| | | | | | | | 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.
* [pytest] use method.__self__.__class__ instead of method.im_classRémi Cardona2015-06-251-1/+1
| | | | | | The latter does not exist in python 3. Related to #105845.
* [testlib] Fix datadir property (closes #294478)Rémi Cardona2015-06-251-1/+1
| | | | | | | | | | | | | | | | | | | | | 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.
* [pkg] pure setuptools setup.py (closes #294479)Rémi Cardona2015-05-281-57/+0
| | | | | - stop installing __pkginfo__ (move it back to root dir) - adapt all packaging to use setuptools
* Stop importing __pkginfo__Rémi Cardona2015-06-241-1/+2
|
* [modutils] Use dict.fromkeys instead of convoluted dict+zip+listrepeatRémi Cardona2015-05-291-2/+1
| | | | | 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.
* [modutils] Add basic support for namespace packagesRémi Cardona2015-05-281-8/+17
| | | | | | Nested namespaces (zope is a big fan) probably don't work. Closes #122443.
* [modutils] Use True/False instead of 1/0Rémi Cardona2015-05-281-8/+8
|
* Fix various typosRémi Cardona2015-05-282-3/+3
|
* [layout] change the source directory layoutDavid Douard2015-03-1347-0/+14291
The logilab.common package now lives in a logilab/common directory to make it pip compliant. Related to #294479.