Georg Brandl
de9b624fb9
Bug #1473625 : stop cPickle making float dumps locale dependent in protocol 0.
...
On the way, add a decorator to test_support to facilitate running single
test functions in different locales with automatic cleanup.
2006-04-30 11:13:56 +00:00
Thomas Wouters
137b1ad8a0
Do the small-memory run of big-meormy tests using a prime number, rather
...
than a convenient power-of-2-and-multiple-of-5, so incorrect testing
algorithms fail more easily.
2006-04-27 22:38:32 +00:00
Tim Peters
687324918f
Whitespace normalization.
2006-04-26 17:11:16 +00:00
Thomas Wouters
abd08884a6
The result of SF patch #1471578 : big-memory tests for strings, lists and
...
tuples. Lots to be added, still, but this will give big-memory people
something to play with in 2.5 alpha 2, and hopefully get more people to
write these tests.
2006-04-26 15:53:30 +00:00
Neal Norwitz
0e17f8cd38
Convenience function to remove a possibly non-existant file
2006-01-23 07:51:27 +00:00
Hye-Shik Chang
aaa2f1dea7
Patch #1276356 : Implement new resource "urlfetch" for regrtest.
...
This enables even impatient people to run tests that require remote
files such as test_normalization and test_codecmaps_*.
2005-12-10 17:44:27 +00:00
Martin v. Löwis
e2713becd8
Build with --disable-unicode again. Fixes #1158607 .
...
Will backport to 2.4.
2005-03-08 15:03:08 +00:00
Tim Peters
58eb11cf62
Whitespace normalization.
2004-01-18 20:29:55 +00:00
Tim Peters
c6c5ece7e2
Typo repair; added some comments and horizontal whitespace.
2003-12-04 05:39:43 +00:00
Mark Hammond
2e8624c21a
Fix test_unicode_file errors on platforms without Unicode file support,
...
by setting TESTFN_UNICODE_UNENCODEABLE on these platforms.
test_unicode_file only attempts to use the name for testing if not None.
2003-12-03 22:16:47 +00:00
Mark Hammond
b337dd903b
Add TESTFN_UNICODE_UNENCODEABLE, a unicode filename that can not be
...
encoded using the default file system encoding.
2003-12-03 01:27:23 +00:00
Raymond Hettinger
f3590623e9
Extend last change to cover TestSuites as well as TestCases.
2003-07-16 04:29:42 +00:00
Raymond Hettinger
21d9987cb5
run_unittest() to support TestCase instances as well as classes. Helps with doctests.
2003-07-16 02:59:32 +00:00
Raymond Hettinger
1ba24b4fbb
Include module name in doctest summary.
2003-05-17 01:59:57 +00:00
Raymond Hettinger
35b34bd326
Provide a clue that the doctests have run.
2003-05-17 00:58:33 +00:00
Martin v. Löwis
a94568a753
Patch #734231 : Update RiscOS support. In particular, correct
...
riscospath.extsep, and use os.extsep throughout.
2003-05-10 07:36:56 +00:00
Brett Cannon
f1cfb622e8
'forget' now also deletes any proper .pyo files.
...
Added some docstrings.
2003-05-04 21:15:27 +00:00
Walter Dörwald
21d3a32b99
Combine the functionality of test_support.run_unittest()
...
and test_support.run_classtests() into run_unittest()
and use it wherever possible.
Also don't use "from test.test_support import ...", but
"from test import test_support" in a few spots.
From SF patch #662807 .
2003-05-01 17:45:56 +00:00
Raymond Hettinger
9dcbbea878
Factor out common boilerplate for test_support
2003-04-27 07:54:23 +00:00
Skip Montanaro
d839ecdc81
if the test is run directly (__name__ == "__main__") don't actually require
...
particular resources
2003-04-24 19:06:57 +00:00
Martin v. Löwis
73d538b9c6
Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,
...
and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding.
Adjust test case.
2003-03-05 15:13:47 +00:00
Fred Drake
9a0db07c2f
test_support.requires(): Instead of raising TestSkipped, raise a new
...
exception, ResourceDenied. This is used to distinguish between tests that
are skipped for other reasons (platform support, missing data, etc.) from
those that are skipped because a "resource" has not been enabled. This
prevents those tests from being reported as unexpected skips for the
platform; those should only be considered unexpected skips if the resource
were enabled.
2003-02-03 15:19:30 +00:00
Tim Peters
b4ee4eb3b3
Rearrange test_socket_ssl so that a skip is expected iff the network
...
resource isn't enabled or the socket module doesn't support ssl.
2002-12-04 03:26:57 +00:00
Martin v. Löwis
2411a2dd82
Don't try to convert the test filename to Unicode with -U.
2002-11-09 19:57:26 +00:00
Tim Peters
3de75266aa
Whitespace normalization.
2002-11-09 05:26:15 +00:00