Commit Graph

76 Commits

Author SHA1 Message Date
Ezio Melotti
e015b6b1fc #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters. 2013-03-16 20:04:44 +02:00
Mark Dickinson
9fade768c8 Issue #13863: fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat) 2012-12-24 16:33:18 +00:00
Nick Coghlan
33b0fc2304 No reason to use a generator here 2012-10-19 23:59:35 +10:00
Nick Coghlan
097708aef6 Issue #6074: Actually delete the source file in the test as intended 2012-10-19 23:17:48 +10:00
Nick Coghlan
b48c028ca7 Issue #6074: Restore the long-broken support for running with read-only source files on Windows 2012-10-19 21:58:18 +10:00
Antoine Pitrou
1a689189d2 Issue #15338: skip test_UNC_path when the current user doesn't have enough permissions to access the path. 2012-07-13 20:54:42 +02:00
Jason R. Coombs
e107ab3b6c Moved symlink support into its own module. Ported can_symlink from Python 3.2, skipping symlink test when it cannot be invoked (such as when the symlink privilege is not present). 2012-03-08 18:28:08 -05:00
Jason R. Coombs
ea4629afa6 Improve the test case to avoid spurious errors about already existing symlinks. 2012-03-08 10:31:29 -05:00
Jason R. Coombs
4a24283272 Adding regression test for issue6727 2012-01-15 11:45:27 -05:00
Antoine Pitrou
6f25d75f25 Remove debug output, fix assert (hopefully) and exercise signedness issues a bit more. 2012-01-25 15:38:32 +01:00
Antoine Pitrou
6e16f53855 Skip test failure under OpenIndiana 2012-01-25 02:49:47 +01:00
Antoine Pitrou
e3668e9842 Make test work under 32-bit systems, and when invoked through Lib/test/regrtest.py
(rather than `-m test.regrtest`)
2012-01-25 01:35:26 +01:00
Antoine Pitrou
d1c818a9c0 Issue #11235: Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp. 2012-01-24 17:44:06 +01:00
Antoine Pitrou
17c07134a9 Fix test_import failure when run multiple times.
(2.7-only)
2011-12-21 16:01:53 +01:00
Victor Stinner
16ed86831b Issue #7732: Try to fix the a failing test on Windows
It doesn't matter if imp.find_module() fails with ImportError or IOError, but
it should not crash.
2011-11-14 20:50:36 +01:00
Victor Stinner
63c22fac72 Issue #7732: Fix a crash on importing a module if a directory has the same name
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).
2011-09-23 19:37:03 +02:00
R. David Murray
64a1e7cab1 Merged revisions 87251 via svnmerge from
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.
........
2010-12-15 01:36:03 +00:00
Florent Xicluna
b35af8c91c This test was not expected in r84100 (not yet ready). 2010-08-16 19:33:48 +00:00
Florent Xicluna
b62a20547a Merged revisions 84097,84099 via svnmerge from
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/
........
2010-08-16 19:22:18 +00:00
Brett Cannon
eb3cd301ae Turned out that if you used explicit relative import syntax
(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.
2010-05-20 18:37:55 +00:00
Florent Xicluna
78c1871d21 Fix and check cgi module deprecation warnings. Revert an unwanted rename in test_import. 2010-03-17 20:05:11 +00:00
Florent Xicluna
2b73c21bed Cleanup in test_import and test_coding. 2010-03-17 19:05:04 +00:00
Collin Winter
8b3f1ce591 Delete unused import. 2010-03-17 03:04:01 +00:00
Collin Winter
89b4f13024 Style cleanup in test_import. 2010-03-17 02:40:12 +00:00
Ezio Melotti
dde5b94875 #7092: Silence more py3k warnings. Patch by Florent Xicluna. 2010-02-03 05:37:26 +00:00