summaryrefslogtreecommitdiff
path: root/test/unittest_modutils.py
Commit message (Collapse)AuthorAgeFilesLines
* [test] Fix modutils tests when running inside a python 3 virtualenv (closes ↵Rémi Cardona2015-06-291-2/+5
| | | | | | | | | | | | | | | | | #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.
* [test] remove check for python < 2.6Rémi Cardona2015-06-291-1/+1
| | | | | Unsupported since the very first few commits of the 0.63.0 release (38c568b29cf3 to be precise).
* [py3k] explicitly build a list around dict methodsJulien Cristau2014-07-271-1/+1
| | | | | When we modify the return value from one of the dict methods, explicitly build a list from it to make things work on python3. Related to #265740.
* [modutils test] enhance some test namesSylvain Th?nault2013-05-071-6/+8
|
* [modutils test] simplify test names and add border cases test for ↵Sylvain Th?nault2013-04-111-6/+16
| | | | is_standard_module
* silent unittest2 warningsSylvain Th?nault2012-08-291-4/+4
|
* [modutils] fix load_module_from_path (closes #100935)Aurelien Campeas2012-07-301-0/+10
| | | | | | | | | | | | | A very old bug in modutils, that leads to doubly loading some modules. By chance on Linux (or the platform we typically use) it seems one the two module gets forgoten as soon as loaded. Unfortunately on Windows, with CubicWeb, it was found that the first module instance was the one on which the mro was built and the second one hosted the super(...) call with a different class id for the litteral within super(ThisClass, self).... The exact reason for the dual behaviour is still unknown but it could well be one of those 'platform dependant' bits that riddle Python.
* Generalise usage of disutils.sysconfig.get_python_version so eg. ↵Sylvain Th?nault2012-07-171-15/+12
| | | | | | is_standard_module works for other python impl. like Jython, IronPython (and should works for pypy). Closes #99493 Also add more test for this function.
* [packaging] prepare 0.55.1logilab-common-version-0.55.1Nicolas Chauvat2011-03-281-1/+1
|
* fix test-interdependency pb in unittest_modutils. Also, stop renaming ↵Sylvain Th?nault2011-01-101-14/+20
| | | | unittest2.TestCase to replace it by another class, this is counter-intuitive when reading the test: ease understanding with another name for the replacement class
* [tests] use plain package file (no symlink)Julien Jehannet2011-01-051-2/+2
| | | | Create a clean zipped mypypa package (without EGG-INFO)
* [test] readd test about relative importJulien Jehannet2010-11-231-2/+7
|
* [test] fix import test about dropped db moduleJulien Jehannet2010-11-221-2/+2
|
* fix testsEmile Anclin2010-11-221-1/+0
|
* [test] fix running of ModuleFileTC testsJulien Jehannet2010-11-151-7/+9
|
* 2to3 has some more usable fixersEmile Anclin2010-11-151-6/+6
|
* 2to3: fix a lot of white space after commaEmile Anclin2010-11-151-5/+5
|
* backport stable into defaultSylvain Th?nault2010-09-241-2/+14
|\
| * [py3k] fix unittest_modutils for standard modulesSylvain Th?nault2010-09-151-2/+14
| |
* | [unittest2] make standard import under py3.x (skip unittest2 support from here)Julien Jehannet2010-09-221-5/+5
|/
* missing replacement in disclaimer; include COPYING.LESSER in manifest; kill ↵Sylvain Th?nault2010-04-281-1/+1
| | | | DEPENDS file
* propre licensing information (LGPL-2.1). Hope I get it right this time.Sylvain Th?nault2010-04-281-11/+16
|
* more license updatesSylvain Th?nault2010-04-261-3/+3
|
* new extrapath argument to modpath_from_file (see function's docstring for ↵Sylvain Th?nault2009-06-031-33/+38
| | | | explanation)
* should not have commited thissylvain thenault2009-03-251-6/+0
|
* add test for zip/egg module searchsylvain thenault2009-03-251-0/+17
|
* remove common path from test only if presentpierre-yves david2008-06-291-2/+5
|
* correct modutils testPierre-Yves David2008-06-261-8/+23
|
* fix test w/ symbolic links environmentsSylvain2007-11-261-6/+6
|
* fix test so that it won't fail if ran from the parent directorySylvain2007-03-071-8/+8
|
* fix test to avoid side effect on textutils test when executed by runtests.pySylvain2006-09-231-9/+8
|
* use testlib everywhereAdrien Di Mascio2006-07-061-0/+3
|
* forget the past.root2006-04-261-0/+203
forget the past.