Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Turned out that if you used explicit relative import syntax | Brett Cannon | 2010-05-20 | 1 | -0/+12 |
| | | | | | | | | | (e.g. from .os import sep) and it failed, import would still try the implicit relative import semantics of an absolute import (from os import sep). That's not right, so when level is negative, only do explicit relative import semantics. Fixes issue #7902. Thanks to Meador Inge for the patch. | ||||
* | Fix and check cgi module deprecation warnings. Revert an unwanted rename in ↵ | Florent Xicluna | 2010-03-17 | 1 | -1/+1 |
| | | | | test_import. | ||||
* | Cleanup in test_import and test_coding. | Florent Xicluna | 2010-03-17 | 1 | -70/+50 |
| | |||||
* | Delete unused import. | Collin Winter | 2010-03-17 | 1 | -1/+0 |
| | |||||
* | Style cleanup in test_import. | Collin Winter | 2010-03-17 | 1 | -70/+73 |
| | |||||
* | #7092: Silence more py3k warnings. Patch by Florent Xicluna. | Ezio Melotti | 2010-02-03 | 1 | -12/+11 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -3/+3 |
| | |||||
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -9/+10 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -10/+9 |
| | | | | Patch by flox | ||||
* | Using CleanImport to revert a reload of the os module doesn't work due to ↵ | Nick Coghlan | 2009-10-18 | 1 | -4/+16 |
| | | | | function registrations in copy_reg. The perils of reloading modules even for tests... | ||||
* | Avoid replacing existing modules and sys.path in import tests | Nick Coghlan | 2009-10-17 | 1 | -4/+5 |
| | |||||
* | Curdir needs to be in the path for the test to work on all buildbots. | R. David Murray | 2009-07-09 | 1 | -0/+2 |
| | | | | | (I copied this from another import test, but currently this will fail if TESTFN ends up in /tmp...see issue 2609). | ||||
* | Specify umask in execute bit test to get consistent results | R. David Murray | 2009-07-09 | 1 | -0/+2 |
| | | | | and make sure we test resetting all three execute bits. | ||||
* | Make test work with -O. | R. David Murray | 2009-07-09 | 1 | -2/+8 |
| | |||||
* | Conditionalize test cleanup code to eliminate traceback, which will | R. David Murray | 2009-07-09 | 1 | -1/+1 |
| | | | | hopefully reveal the real problem. | ||||
* | Issue 6070: when creating a compiled file, after copying the mode bits, on | R. David Murray | 2009-07-07 | 1 | -0/+19 |
| | | | | | posix zap the execute bit in case it was set on the .py file, since the compiled files are not directly executable on posix. Patch by Marco N. | ||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -7/+7 |
| | |||||
* | Add a test for UNC import paths, see issue 3677 | Kristján Valur Jónsson | 2009-01-24 | 1 | -0/+21 |
| | |||||
* | Use shutil.rmtree rather than os.rmdir. | Antoine Pitrou | 2009-01-06 | 1 | -1/+1 |
| | |||||
* | Issue #1180193: When importing a module from a .pyc (or .pyo) file with | Antoine Pitrou | 2009-01-06 | 1 | -1/+93 |
| | | | | | | | an existing .py counterpart, override the co_filename attributes of all code objects if the original filename is obsolete (which can happen if the file has been renamed, moved, or if it is accessed through different paths). Patch by Ziga Seilnacht and Jean-Paul Calderone. | ||||
* | Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the ↵ | Nick Coghlan | 2008-09-11 | 1 | -7/+7 |
| | | | | test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon) | ||||
* | warnings.catch_warnings() now returns a list or None instead of the custom | Brett Cannon | 2008-09-09 | 1 | -8/+8 |
| | | | | | | | | WarningsRecorder object. This makes the API simpler to use as no special object must be learned. Closes issue 3781. Review by Benjamin Peterson. | ||||
* | Fix issue 3221 by emitting a RuntimeWarning instead of raising SystemError ↵ | Nick Coghlan | 2008-07-13 | 1 | -3/+33 |
| | | | | when the parent module can't be found during an absolute import (likely due to non-PEP 361 aware code which sets a module level __package__ attribute) | ||||
* | Allow test_import to work when it is invoked directly | Benjamin Peterson | 2008-04-25 | 1 | -0/+2 |
| | |||||
* | Import relimport using a relative import. | Martin v. Löwis | 2008-03-19 | 1 | -1/+1 |
| | |||||
* | Issue #2400: Allow relative imports to "import *". | Martin v. Löwis | 2008-03-19 | 1 | -1/+13 |
| | |||||
* | Fixed #1776. __import__() no longer imports modules by file name | Christian Heimes | 2008-01-09 | 1 | -1/+11 |
| | |||||
* | Removed non ASCII text from test as requested by Guido. Sorry :/ | Christian Heimes | 2007-11-01 | 1 | -20/+2 |
| | |||||
* | Backport of import tests for bug http://bugs.python.org/issue1293 and bug ↵ | Christian Heimes | 2007-11-01 | 1 | -2/+43 |
| | | | | http://bugs.python.org/issue1342 | ||||
* | Remove test.test_support.guard_warnings_filter. | Brett Cannon | 2007-08-14 | 1 | -2/+2 |
| | | | | | | | | test.test_support.catch_warning is more full-featured and provides the same functionality. Since guard_warnings_filter was added in 2.6 there is no backwards-compatibility issues. | ||||
* | Whitespace normalization. | Tim Peters | 2007-03-12 | 1 | -2/+2 |
| | |||||
* | Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. ↵ | Collin Winter | 2007-03-12 | 1 | -0/+10 |
| | | | | | | Fixed by patch #922167. Will backport. | ||||
* | Add test.test_support.guard_warnings_filter . This function returns a context | Brett Cannon | 2006-12-13 | 1 | -7/+4 |
| | | | | | manager that protects warnings.filter from being modified once the context is exited. | ||||
* | Whitespace normalization. | Tim Peters | 2006-10-18 | 1 | -2/+2 |
| | |||||
* | Convert test_import to unittest. | Georg Brandl | 2006-09-30 | 1 | -200/+197 |
| | |||||
* | - Add new Warning class, ImportWarning | Thomas Wouters | 2006-04-27 | 1 | -0/+17 |
| | | | | | | | | | | | | | | - Warn-raise ImportWarning when importing would have picked up a directory as package, if only it'd had an __init__.py. This swaps two tests (for case-ness and __init__-ness), but case-test is not really more expensive, and it's not in a speed-critical section. - Test for the new warning by importing a common non-package directory on sys.path: site-packages - In regrtest.py, silence warnings generated by the build-environment because Modules/ (which is added to sys.path for Setup-created modules) has 'zlib' and '_ctypes' directories without __init__.py's. | ||||
* | Use absolute imports | Neal Norwitz | 2006-04-03 | 1 | -1/+1 |
| | |||||
* | Merge ast-branch to head | Jeremy Hylton | 2005-10-20 | 1 | -0/+13 |
| | | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests. | ||||
* | New tests: | Tim Peters | 2004-08-02 | 1 | -0/+84 |
| | | | | | | | | | | test_failing_import_sticks -- if an import raises an exception, ensure that trying to import it again continues raising exceptions test_failing_reload -- if a module loads OK, but a reload raises an exception, ensure that the module is still in sys.modules, and that its __dict__ reflects as much of the reload attempt as succeeded. That doesn't seem like sane semantics, but it is backward-compatible semantics <wink>. | ||||
* | Patch #734231: Update RiscOS support. In particular, correct | Martin v. Löwis | 2003-05-10 | 1 | -3/+3 |
| | | | | riscospath.extsep, and use os.extsep throughout. | ||||
* | Get rid of relative imports in all unittests. Now anything that | Barry Warsaw | 2002-07-23 | 1 | -1/+1 |
| | | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :) | ||||
* | Got rid of special case for Macintosh realloc slowdown: Tim fixed the problem. | Jack Jansen | 2002-07-08 | 1 | -2/+1 |
| | |||||
* | Disable the test for importing very long lists for MacPython: it triggers | Jack Jansen | 2002-06-20 | 1 | -1/+2 |
| | | | | | an out-of-memory condition (and a hang on OSX). Filed a bug report (#571845) to make sure this is eventually fixed. | ||||
* | test_module_with_large_stack(): This failed when Python was run with -O, | Tim Peters | 2002-06-15 | 1 | -2/+5 |
| | | | | | trying to delete a .pyc file that didn't exist (it needed to delete .pyo then). | ||||
* | test_module_with_large_stack(): This failed on Windows, for the wrong | Tim Peters | 2002-06-15 | 1 | -1/+1 |
| | | | | reason <wink>: can't unlink an open file on Windows. | ||||
* | Fix SF bug # 561858 Assertion with very long lists | Neal Norwitz | 2002-06-14 | 1 | -0/+31 |
| | | | | | Write 4 bytes for co_stacksize, etc. to prevent writing out bad .pyc files which can cause a crash when read back in. | ||||
* | Verify that the imp can find and load .py files. | Jeremy Hylton | 2002-05-30 | 1 | -0/+5 |
| | |||||
* | SF patch #474590 -- RISC OS support | Guido van Rossum | 2001-10-24 | 1 | -3/+3 |
| | |||||
* | Rip the import repr truncation test out of here and put it in test_repr.py | Barry Warsaw | 2001-08-24 | 1 | -35/+0 |
| | |||||
* | Added a test for module repr truncation when the package name is | Barry Warsaw | 2001-08-16 | 1 | -0/+35 |
| | | | | really long. Closes SF bug #437984. |