Antoine Pitrou
e1a1674e1e
Issue #17835 : Fix test_io when the default OS pipe buffer size is larger than one million bytes.
2013-04-24 23:31:38 +02:00
Gregory P. Smith
91110f5e55
Use a larger amount of data for tests such as the interrupted_write
...
tests that depend on filling up an OS pipe so that they work properly
on systems configured with large pipe buffers.
2013-03-19 23:25:16 -07:00
Ezio Melotti
e846342f8a
#11732 : make suppress_crash_popup() work on Windows XP and Windows Server 2003.
2013-03-07 18:37:13 +02:00
Ezio Melotti
25a404520d
#11732 : add a new suppress_crash_popup() context manager to test.support.
2013-03-05 20:26:17 +02:00
Serhiy Storchaka
26f1166510
Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings.
2013-01-27 20:03:39 +02:00
Serhiy Storchaka
9d0add0c7e
Issue #17041 : Fix testing when Python is configured with the
...
--without-doc-strings.
2013-01-27 19:47:45 +02:00
Stefan Krah
6e572b8b2e
Adapt test_bytes for a build --without-doc-strings.
2013-01-26 13:06:36 +01:00
Victor Stinner
269b3ce400
(Merge 3.2) Issue #16218 , #16414 , #16444 : Backport FS_NONASCII,
...
TESTFN_UNDECODABLE, TESTFN_NONASCII of test.support from Python 3.4. Backport
tests on non-ASCII paths.
2013-01-03 01:56:38 +01:00
Victor Stinner
0af71aae2d
Issue #16218 , #16414 , #16444 : Backport FS_NONASCII, TESTFN_UNDECODABLE,
...
TESTFN_NONASCII of test.support from Python 3.4. Backport tests on non-ASCII
paths.
2013-01-03 01:50:30 +01:00
Victor Stinner
e667e98faa
Issue #16218 , #16444 : Backport improvment on tests for non-ASCII characters
2012-11-12 01:23:15 +01:00
Benjamin Peterson
b29614e047
compare singletons by identity not equality ( closes #16712 )
...
Patch from Serhiy Storchaka.
2012-10-09 11:16:03 -04:00
Ezio Melotti
050a61f838
#15304 : merge with 3.2.
2012-09-21 16:53:07 +03:00
Ezio Melotti
e418d76089
#15304 : fix wrong warning message in test.support.temp_cwd().
2012-09-21 16:48:12 +03:00
Brian Curtin
835df52471
Merge 3.2
2012-08-13 17:12:02 -05:00
Brian Curtin
6f5c5cb75b
Fix #15496 . Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth
2012-08-13 17:05:57 -05:00
Martin v. Löwis
2b16844326
Issue #15467 : Merge 3.2
2012-07-29 16:38:45 +02:00
Martin v. Löwis
33f799725c
Issue #15467 : Move helpers for __sizeof__ tests into test_support.
...
Patch by Serhiy Storchaka.
2012-07-29 16:33:05 +02:00
Ross Lagerwall
121d59ffa9
#15277 : Fix a resource leak in support.py when IPv6 is disabled.
...
The leak occurred by setting:
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
before running test_support.
Patch by Brian Brazil.
2012-07-07 18:40:32 +02:00
Larry Hastings
9cf065cfdc
Issue #14626 : Large refactoring of functions / parameters in the os module.
...
Many functions now support "dir_fd" and "follow_symlinks" parameters;
some also support accepting an open file descriptor in place of of a path
string. Added os.support_* collections as LBYL helpers. Removed many
functions only previously seen in 3.3 alpha releases (often starting with
"f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka;
implemented by Larry Hastings.
2012-06-22 16:30:09 -07:00
Richard Oudkerk
73d9a292ae
Issue #13841 : Make child processes exit using sys.exit() on Windows
2012-06-14 15:30:10 +01:00
Hynek Schlawack
e02ba1031f
#14885 : Make support.skip_unless_xattr check also tempfile
...
There is a rare edge case where the filesystem used by the tempfile functions
(usually /tmp) doesn't support xattrs while the one used by TESTFN (the current
directory, so likely to be below /home) does. This causes the xattr related
test_shutil tests fail. skip_unless_xattr now checks both.
I have also added skip_unless_xattr to __all__ where it has been missing.
2012-05-23 11:22:44 +02:00
Antoine Pitrou
ebdcd859e5
Move private function _args_from_interpreter_flags() to subprocess.py, so
...
that it can be imported when threads are disabled.
(followup to issue #12098 )
2012-05-18 18:33:07 +02:00
Richard Oudkerk
77c84f2def
#12098 : Make multiprocessing's child processes inherit sys.flags on Windows
...
Initial patch by Sergey Mezentsev.
2012-05-18 14:28:02 +01:00
Martin v. Löwis
7fb79fcb64
Issue #14366 : Support lzma compression in zip files.
...
Patch by Serhiy Storchaka.
2012-05-13 10:06:36 +02:00
Antoine Pitrou
424246fbf3
Issue #14082 : shutil.copy2() now copies extended attributes, if possible.
...
Patch by Hynek Schlawack.
2012-05-12 19:02:01 +02:00
Martin v. Löwis
f6b16a4b50
Issue #14371 : Support bzip2 in zipfile module.
...
Patch by Serhiy Storchaka.
2012-05-01 07:58:44 +02:00
Alexander Belopolsky
934cb18ef5
merged
2012-04-29 18:20:05 -04:00
Alexander Belopolsky
b8f02b5a5f
fixed test_imaplib failure on Win
2012-04-29 18:16:46 -04:00
Alexander Belopolsky
5a38f80f9c
Issue #10941 : Fix imaplib.Internaldate2tuple to produce correct result near
...
the DST transition. Patch by Joe Peterson.
2012-04-29 16:12:27 -04:00
Alexander Belopolsky
2420d83158
Issue #10941 : Fix imaplib.Internaldate2tuple to produce correct result near
...
the DST transition. Patch by Joe Peterson.
2012-04-29 15:56:49 -04:00
Charles-François Natali
55bce63ea0
Issue #14154 : Reimplement the bigmem test memory watchdog as a subprocess.
2012-03-24 10:06:23 +01:00
Stefan Krah
1919b7e72b
Issue #7652 : Integrate the decimal floating point libmpdec library to speed
...
up the decimal module. Performance gains of the new C implementation are
between 12x and 80x, depending on the application.
2012-03-21 18:25:23 +01:00
Charles-François Natali
9578757ec4
Issue #14107 : test: Fix a deadlock involving the memory watchdog thread.
2012-02-26 17:27:32 +01:00
Georg Brandl
2fb477c0f0
Merge 3.2: Issue #13703 plus some related test suite fixes.
2012-02-21 00:33:36 +01:00
Antoine Pitrou
e9f637b062
Make "regrtest -j" "-R"-aware
2012-02-20 23:49:07 +01:00
Charles-François Natali
1635e9cc59
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:17:46 +01:00
Charles-François Natali
13859bfedc
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:16:44 +01:00
Éric Araujo
4300f69afd
Update skip message printed by test.support.get_attribute.
...
This helper was changed to work with any object instead of only modules
(or technically something with a __name__ attribute, see code in 3.2)
but the message stayed as is.
2011-10-05 01:50:22 +02:00
Antoine Pitrou
5b99df68b0
Collect stats a bit more often
2011-10-04 12:06:06 +02:00
Antoine Pitrou
75e78b6c77
Use the faulthandler module's infrastructure to write a GIL-less
...
memory watchdog for timely stats collection.
2011-10-04 11:51:23 +02:00
Antoine Pitrou
1a3ff48c55
Start fixing test_bigmem:
...
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
2011-10-04 10:28:37 +02:00
Antoine Pitrou
94190bb6e7
Start fixing test_bigmem:
...
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
2011-10-04 10:22:36 +02:00
Charles-François Natali
87b3c92b5b
Introduce support.requires_freebsd_version decorator.
2011-10-03 19:40:37 +02:00
Nick Coghlan
2496f331a7
Close issue 12958 by flagging expected failures in test_socket on Mac OS X
2011-09-19 20:26:31 +10:00
Antoine Pitrou
7a18d21230
Remove misleading comment and code.
...
Windows does set the errno attribute to ENOENT, but the error message
displays the Windows error number (3 -> ERROR_PATH_NOT_FOUND), not the
errno number (2 -> ENOENT).
The Unix errno corresponding to 3 is ESRCH, explaining the confusion,
which can be seen in the following snippet:
>>> shutil.rmtree("foo")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "Z:\default\lib\shutil.py", line 272, in rmtree
onerror(os.listdir, path, sys.exc_info())
File "Z:\default\lib\shutil.py", line 270, in rmtree
names = os.listdir(path)
WindowsError: [Error 3] The system cannot find the path specified:
'foo\\*.*'
>>> e = sys.last_value
>>> e.errno
2
>>> e.winerror
3
>>> errno.errorcode[2]
'ENOENT'
For reference, see PC/errmap.h and
http://msdn.microsoft.com/en-us/library/ms681382%28v=vs.85%29.aspx
2011-08-30 18:34:47 +02:00
Antoine Pitrou
ee763e2acc
Issue #11564 : Avoid crashes when trying to pickle huge objects or containers
...
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
2011-08-29 23:14:53 +02:00
Antoine Pitrou
82be19f889
Issue #11564 : Avoid crashes when trying to pickle huge objects or containers
...
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
2011-08-29 23:09:33 +02:00
Victor Stinner
e67474725b
Issue #12326 : refactor usage of sys.platform
...
* Use str.startswith(tuple): I didn't know this Python feature, Python rocks!
* Replace sometimes sys.platform.startswith('linux') with
sys.platform == 'linux'
* sys.platform doesn't contain the major version on Cygwin on Mac OS X
(it's just 'cygwin' and 'darwin')
2011-08-21 00:39:18 +02:00
Antoine Pitrou
f83e4acbae
Issue #12626 : In regrtest, allow to filter tests using a glob filter
...
with the `-m` (or `--match`) option. This works with all test cases
using the unittest module. This is useful with long test suites
such as test_io or test_subprocess.
2011-07-29 23:57:10 +02:00
Antoine Pitrou
b9c73e8cf0
Issue #12626 : In regrtest, allow to filter tests using a glob filter
...
with the `-m` (or `--match`) option. This works with all test cases
using the unittest module. This is useful with long test suites
such as test_io or test_subprocess.
2011-07-29 23:53:38 +02:00