| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
bit more.
|
| |
|
|
|
|
|
|
| |
Lib/test/regrtest.py
(rather than `-m test.regrtest`)
|
|
|
|
| |
modification time doesn't fit in a 32-bit timestamp.
|
|
|
|
| |
(2.7-only)
|
|
|
|
|
| |
It doesn't matter if imp.find_module() fails with ImportError or IOError, but
it should not crash.
|
|
|
|
|
|
|
|
| |
than a Python module (e.g. "__init__.py"): don't close the file twice.
PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87251 | r.david.murray | 2010-12-14 18:06:25 -0500 (Tue, 14 Dec 2010) | 4 lines
#4236: avoid possible Fatal Error when import is called from __del__
Patch by Simon Cross, crasher test code by Martin von Löwis.
........
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84097 | florent.xicluna | 2010-08-16 20:41:19 +0200 (lun., 16 août 2010) | 1 line
Use test.support and unittest features. Fix duplicated test (bad merge in r79033). Fix comment for issue #7902.
........
r84099 | florent.xicluna | 2010-08-16 21:03:05 +0200 (lun., 16 août 2010) | 1 line
I get it wrong in r84097: s/relative/absolute/
........
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
test_import.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
mistake. ( It may come in for sure tough)
|
|
|
|
| |
Patch by flox
|
|
|
|
| |
function registrations in copy_reg. The perils of reloading modules even for tests...
|
| |
|
|
|
|
|
| |
(I copied this from another import test, but currently this will fail if
TESTFN ends up in /tmp...see issue 2609).
|
|
|
|
| |
and make sure we test resetting all three execute bits.
|
| |
|
|
|
|
| |
hopefully reveal the real problem.
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon)
|
|
|
|
|
|
|
|
| |
WarningsRecorder object. This makes the API simpler to use as no special object
must be learned.
Closes issue 3781.
Review by Benjamin Peterson.
|
|
|
|
| |
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)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
http://bugs.python.org/issue1342
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Fixed by patch #922167.
Will backport.
|
|
|
|
|
| |
manager that protects warnings.filter from being modified once the context is
exited.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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>.
|
|
|
|
| |
riscospath.extsep, and use os.extsep throughout.
|