Commit Graph

154 Commits

Author SHA1 Message Date
Antoine Pitrou 13d7db19f6 Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.

Should fix a buildbot failure.
2011-07-09 02:32:36 +02:00
Antoine Pitrou 4875c46538 Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.

Should fix a buildbot failure.
2011-07-09 02:31:24 +02:00
Victor Stinner bf816223df Issue #12451: Add support.create_empty_file()
We don't need to create a temporary buffered binary or text file object just to
create an empty file.

Replace also os.fdopen(handle).close() by os.close(handle).
2011-06-30 23:25:47 +02:00
Victor Stinner 05d34fc953 Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymore
regrtest doesn't check that tests doesn't write something to stdout anymore.

Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.
2011-06-29 15:53:11 +02:00
Victor Stinner bddc4d4607 Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymore
regrtest doesn't check that tests doesn't write something to stdout anymore.

Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.
2011-06-29 15:52:46 +02:00
Brian Curtin a87d586fd6 branch merge? 2011-06-13 16:10:32 -05:00
Brian Curtin c9d6a501db branch merge 2011-06-13 16:03:01 -05:00
Brian Curtin 3e86c99f90 Merge from 3.2 for Issue #12084. 2011-06-13 16:00:35 -05:00
Brian Curtin d25aef55c8 Fix #12084. os.stat on Windows wasn't working properly with relative symlinks.
Use of DeviceIoControl to obtain the symlink path via the reparse tag was
removed. The code now uses GetFinalPathNameByHandle in the case of a
symbolic link and works properly given the added test which creates a symbolic
link and calls os.stat on it from multiple locations.

Victor Stinner also noticed an issue with os.lstat following the os.stat
code path when being passed bytes. The posix_lstat function was adjusted to
properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
2011-06-13 15:16:04 -05:00
Victor Stinner 3adba1ff81 (Merge 3.2) test.support: don't catch OSError when can_symlink() removes the
temporary symbolic link.
2011-06-07 12:19:34 +02:00
Victor Stinner 62ec61fb6a test.support: can_symlink() removes the temporary symbolic link 2011-06-07 12:17:15 +02:00
Charles-François Natali 239bb96540 Issue #12196: Make test.support's requires_linux_version a decorator. 2011-06-03 12:55:15 +02:00
Victor Stinner ebbbdafd87 (Merge 3.2) Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes,
the file descriptor of a pipe closed in the parent process is valid in the
child process according to fstat(), but the mode of the file descriptor is
invalid, and read or write raise an error.

test.support.requires_mac_ver() is now a decorator, as suggested by Ezio
Melotti, and its docstring is fixed (linux_version => mac_ver).
2011-06-01 13:19:07 +02:00
Victor Stinner 88701e27e9 Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file
descriptor of a pipe closed in the parent process is valid in the child process
according to fstat(), but the mode of the file descriptor is invalid, and read
or write raise an error.

Add also requires_mac_ver() decorator to test.support.
2011-06-01 13:13:04 +02:00
Victor Stinner fce9233e93 test.support: add requires_mac_ver() function
Add also linux_version() to __all__.
2011-06-01 12:28:04 +02:00
Charles-François Natali 2d51721832 Issue #12196: Add PIPE_MAX_SIZE to test.support, constant larger than the
underlying OS pipe buffer size.
2011-05-29 16:36:44 +02:00
Victor Stinner fea0f4d517 Issue #12158: Move linux_version() from test_socket to test.support 2011-05-24 00:24:19 +02:00
Ezio Melotti cad648cbc9 Skip tests that require zlib in the packaging tests. Also add a requires_zlib decorator to test.support. 2011-05-19 21:25:10 +03:00
Ezio Melotti 63db5b6510 Merge with 3.2 and also remove captured_output from __all__ (see #7960). 2011-05-14 14:57:15 +03:00
Ezio Melotti 07352b084c Update __all__ and docstring. 2011-05-14 14:51:18 +03:00
Ezio Melotti 6b8934053a #7960: merge with 3.2. 2011-05-14 08:44:12 +03:00
Ezio Melotti e728d72d8a #7960: merge with 3.1. 2011-05-14 08:43:25 +03:00
Ezio Melotti fc778fd067 #7960: fix docstrings for captured_output and captured_stdout. 2011-05-14 08:22:47 +03:00
Ezio Melotti 32e3fdc2d0 #5723: merge with 3.2. 2011-05-14 06:52:55 +03:00
Ezio Melotti 6b60fb9148 #5723: merge with 3.1. 2011-05-14 06:47:51 +03:00
Ezio Melotti 3c0d8a1cc7 #5723: Improve json tests to be executed with and without accelerations. 2011-05-14 06:38:03 +03:00
Ezio Melotti 4e03e9dc8d Merge with 3.2. 2011-05-14 06:24:18 +03:00
Ezio Melotti 3659f27ad3 Merge with 3.1. 2011-05-14 06:23:20 +03:00
Ezio Melotti fec3ad1036 Change import_fresh_module to work with packages. 2011-05-14 06:02:25 +03:00
Ezio Melotti 3843de3b0e #11910: merge with 3.2. 2011-05-09 06:44:36 +03:00
Ezio Melotti 313fa9d365 #11910: merge with 3.1. 2011-05-09 06:43:14 +03:00
Ezio Melotti 199e0857f9 #11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported. 2011-05-09 06:41:55 +03:00
Benjamin Peterson 3a0792da6e merge 3.2 2011-05-08 15:35:09 -05:00
Benjamin Peterson 31dc3735a5 merge 3.1 2011-05-08 15:34:24 -05:00
Benjamin Peterson 262c5827a5 put import_fresh_module in __all__ 2011-05-08 15:32:46 -05:00
Antoine Pitrou 31b89599e9 Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows) 2011-04-29 00:49:03 +02:00
Antoine Pitrou 390ea0f25d Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows) 2011-04-29 00:44:33 +02:00
Antoine Pitrou 9c39f3c4ec Issue #11811: Factor out detection of IPv6 support on the current host
and make it available as `test.support.IPV6_ENABLED`.  Patch by
Charles-François Natali.
2011-04-28 19:18:10 +02:00
Thomas Wouters 518b5aea1a Revert the Lib/test/test_bigmem.py changes from commit 17891566a478 (and a
few other assertEqual tests that snuck in), and expand the docstrings and
comments explaining why and how these tests are supposed to work.
2011-03-25 11:42:37 +01:00
Antoine Pitrou 5066b03361 Fix transmitting warning options to the children when running tests in
parallel (thanks Michael for pointing this).
2011-03-23 20:10:18 +01:00
Antoine Pitrou e870623e96 Merge fix for issue #11501 2011-03-15 21:05:36 +01:00
Antoine Pitrou 2c50a09ac4 On behalf of Tarek: Issue #11501: disutils.archive_utils.make_zipfile no
longer fails if zlib is not installed. Instead, the zipfile.ZIP_STORED
compression is used to create the ZipFile. Patch by Natalia B. Bidart.
2011-03-15 21:02:59 +01:00
Brett Cannon ee877a08e9 Don't leave around a test symlink file. 2011-03-15 17:32:14 -04:00
Antoine Pitrou 8213cafd62 Merge 2011-03-15 21:10:33 +01:00
Antoine Pitrou 0e63f59492 Merge fix for issue #11501 2011-03-15 21:08:50 +01:00
Brett Cannon b880c1558e Add warnings support to test.support.args_from_interpreter_flags().
This allows the -j flag to regrtest to propagate warnings settings
properly.
2011-03-15 16:03:09 -04:00
Antoine Pitrou 9e719b6eba Merged revisions 88460,88464,88466,88486,88511,88652 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines

  Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers
  larger than 4GB.  Patch by Nadeem Vawda.
........
  r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines

  Fix issues on 32-bit systems introduced by r88460
........
  r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines

  Fix compile error under MSVC introduced by r88460.
........
  r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines

  Issue #4681: Allow mmap() to work on file sizes and offsets larger than
  4GB, even on 32-bit builds.  Initial patch by Ross Lagerwall, adapted for
  32-bit Windows.
........
  r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines

  Issue #11277: finally fix Snow Leopard crash following r88460.
  (probably an OS-related issue with mmap)
........
  r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines

  Issue #9931: Fix hangs in GUI tests under Windows in certain conditions.
  Patch by Hirokazu Yamamoto.
........
2011-02-28 23:48:16 +00:00
Antoine Pitrou 4914f9e4e2 Merged revisions 88652 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines

  Issue #9931: Fix hangs in GUI tests under Windows in certain conditions.
  Patch by Hirokazu Yamamoto.
........
2011-02-26 16:49:08 +00:00
Antoine Pitrou d20a5f6161 Issue #9931: Fix hangs in GUI tests under Windows in certain conditions.
Patch by Hirokazu Yamamoto.
2011-02-26 15:58:05 +00:00
Eli Bendersky 67ebabd152 Removed fcmp and FUZZ from test.support, following the discussion on python-dev:
http://mail.python.org/pipermail/python-dev/2011-January/107735.html
2011-02-25 10:14:17 +00:00