summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * Minor tweaks in packaging’s test_dist.Éric Araujo2011-06-171-21/+15
| | | | | | | | | | | | | | | | | | | | - Use different Metadata objects to write and read a PKG-INFO (METADATA) file, to make sure the tested values come from the file - No need to restore methods on an instance after monkey-patching them: the methods are still the same on the class - Harmonize dedent calls
| * Stop binding sys.path as default parameter value in packaging.Éric Araujo2011-06-162-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | The two public functions in database default to sys.path if the given *paths* argument is None; the private functions don’t have default values for their arguments anymore, which is fine as the public functions that call them pass their arguments down. Likewise in install, the functions will pass down their *paths* arguments down to database functions. A one-line unneeded function in install was removed instead of being changed, and the few remaining tests that used brute-force restoration of sys.path have been cleaned up to use sys.path.remove.
| * Packaging: remove last mentions and uses of setup.py in the code.Éric Araujo2011-06-162-17/+3
| | | | | | | | | | Now only the compatibility layer (in create, util and install) talk about setup.py.
| * Clean up packaging.tests.test_mixin2to3Éric Araujo2011-06-161-34/+43
| |
* | Issue #12333: run tests on the new module in a subprocessVictor Stinner2011-06-171-24/+16
| | | | | | | | | | | | | | | | | | | | | | | | It is not possible to unload a module written in C, so use a subprocess to run the tests on the module compiled by test_build_ext(). Using a subprocess, we don't have to unload the module, save/restore sys.path, and the test can be run more than once. This commit fixes also an access error on rmtree() on Windows: because the module was not really unloaded, it was not possible to remove the temporary directory (it is not possible to remove a directory on Windows if it still contains an open file).
* | Issue #12333: close files before removing the directoryVictor Stinner2011-06-171-3/+2
| | | | | | | | | | packaging.tests.support.TempdirManager: rmtree() fails on Windows if there are still open files in the directory.
* | Issue #12333: restore the previous dir before removing the current directoryVictor Stinner2011-06-171-8/+5
|/ | | | | | | packaging.tests.support.TempdirManager: removing the current directory is not allowed on Windows or Solaris. Store the current directory and restore it before removing the temporary directory (which is used as the working directory during the tests).
* Issue #12167: Fix a reafleak in packaging.tests.PyPIServer constructorVictor Stinner2011-06-151-1/+3
| | | | Don't modify mutable default arguments...
* Specify the encoding of the setup.cfg in one packaging test (#12320)Éric Araujo2011-06-121-1/+1
|
* Allow multiple setup hooks in packaging’s setup.cfg files (#12240).Éric Araujo2011-06-102-8/+30
| | | | Original patch by Erik Bray.
* setup.cfg: Document that description-file can contain more than one fileÉric Araujo2011-06-101-1/+1
|
* Fix assorted bugs in packaging.util.cfg_to_args (#11595).Éric Araujo2011-06-101-7/+41
| | | | Original patch by Erik Bray.
* Don’t try to install something when running from uninstalled source (#12246).Éric Araujo2011-06-101-2/+12
| | | | Original patch by Tshepang Lekhonkhobe.
* Clean up extra environment variable after packaging tests.Éric Araujo2011-06-101-1/+1
| | | | | | | | | | | | | packaging.util.check_environ will define HOME and PLAT if they don’t exist; for some reason, it does not define PLAT when running the tests from a checkout (so no regrtest warning) but does when running from an installed Python. Cleaning up the envvar in test_dist fixes the warning on my machine, but I suspect that a test runner using a different order to run files or running them in parallel may have PLAT defined in its environment because of another test. Quite a lot of code ends up calling check_environ; maybe we should just clean up PLAT in every test. For now I’m doing this simple fix, we’ll see if we get bug reports.
* Fix omission in test for packaging install_distinfo command.Éric Araujo2011-06-101-1/+1
| | | | | | | | The code does not write checksum or file length for .pyc and .pyo in the RECORD file, in compliance with PEP 376, but the test forgot to take .pyo into account. This was not caught because there were no .pyo in the checkout, but after installing there are .pyo files created by compileall, and the test picks them up.
* Fix example in packaging test_config.Éric Araujo2011-06-091-2/+2
| | | | | | The example C extension used the “three.fast_taunt” name, but no “three” parent was defined in the setup.cfg. This did not cause a failure nor even print a warning, we may want to change that.
* Packaging cleanup: remove use of script_name where obsoleteÉric Araujo2011-06-085-19/+0
|
* Fix UnboundLocalError in a finally block of one packaging testÉric Araujo2011-06-061-1/+1
|
* Fix sdist to always include setup.cfg (#11092), to comply with the specÉric Araujo2011-06-062-11/+19
|
* Use strings instead of sets of lines in packaging.create tests.Éric Araujo2011-06-061-57/+63
| | | | | Using sets in tests did not check whether the values were written in the right section or with the right key.
* Fix commentÉric Araujo2011-06-061-1/+1
|
* Cleanup in packaging: don’t unnecessarily instantiate exceptionsÉric Araujo2011-06-041-1/+1
|
* Document autoflushing in packaging.test.support.LoggingCatcher.get_logs.Éric Araujo2011-06-031-1/+4
| | | | | | I’m afraid my docstring is not as clear as it should be, but I can’t find a concise way of describing what the code does. Suggestions for improvements welcome.
* Fix format of warnings from the packaging check commandÉric Araujo2011-06-021-0/+11
|
* Make packaging.tests.support.LoggingCatcher.get_logs flush the log handler.Éric Araujo2011-06-023-15/+19
| | | | | This removes the need to call flush manually in each test, except when testing code that creates warning without checking them.
* Branch mergeÉric Araujo2011-06-012-7/+6
|\
| * Re-apply distutils2 changes lost before the merge of packaging.Éric Araujo2011-05-311-5/+4
| | | | | | | | | | wrap_text was removed in favor of standard textwrap but the removal of the function was lost in a bad merge; a change in sdist mysteriously disappeared.
| * Fix test name in debug messageÉric Araujo2011-05-311-2/+2
| |
* | make sure we check for write access before starting the install, and add ↵Tarek Ziade2011-05-312-4/+41
| | | | | | | | correct exit code
* | better UI when the user does not have the perms to remove the projectTarek Ziade2011-05-301-5/+23
| |
* | fixed the test_uninstall patchTarek Ziade2011-05-301-2/+2
|/
* removed spurious outputTarek Ziade2011-05-301-1/+7
|
* Cleaned up the installer output behavior.Tarek Ziade2011-05-302-24/+23
| | | | | | This change also makes sure the logger handlers are not alterated after an installation. That also fixes the remaining environment alteration issue in test_packaging.
* cleanup packaging.databaseTarek Ziade2011-05-301-5/+3
|
* a resource module for 2 functions is overkill. database is the right place ↵Tarek Ziade2011-05-302-170/+156
| | | | for those
* Port r86353 to packaging (#10359: “;” after function definition is ↵Éric Araujo2011-05-291-1/+1
| | | | invalid in ISO C)
* Merge touch-ups and fixes for #9831 (+port fix to packaging) and #9223 from 3.2Éric Araujo2011-05-281-3/+6
|
* Issue #12180: Fixed a few remaining errors in test_packaging when no threading.Tarek Ziade2011-05-254-7/+36
|
* Issue #12167: packaging.tests.test_dist unloads the temporary moduleVictor Stinner2011-05-241-0/+2
| | | | Fix a reference leak.
* Issue #12167: packaging.tests.support, LoggingCatcher restores correctly theVictor Stinner2011-05-241-1/+2
| | | | log level. Avoid also calls to .addCleanup() in setUp().
* Issue #12125: fixed the failures under Solaris due to improper test cleanup.Tarek Ziade2011-05-233-1/+14
|
* fixed the cwd cleanup in packaging test_utilTarek Ziade2011-05-231-1/+8
|
* make sure the cwd is restored on tearDownTarek Ziade2011-05-231-0/+5
|
* make sure build_dir.build_lib is synced to the faked build locationTarek Ziade2011-05-231-0/+4
|
* skip more tests in packaging if threading is not supportedTarek Ziade2011-05-223-3/+20
|
* not using a server name anymore as the 127.0.0.1 <> localhost symmetry is ↵Tarek Ziade2011-05-221-3/+1
| | | | not true under Windows 7
* Issue 12132 - skip the test_buil_ext test if the xx module is not foundTarek Ziade2011-05-221-1/+5
|
* Issue 10126 - backported distutils fix for the enable-share mode into packagingTarek Ziade2011-05-221-1/+24
|
* added the Content-Length header. that fixes the weird ↵Tarek Ziade2011-05-211-0/+1
| | | | packaging.pypi.errors.HashDoesNotMatch errors
* deactivating one test under win32 for nowTarek Ziade2011-05-211-0/+1
|