<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_support.py, branch v2.2a3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_support.py?h=v2.2a3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_support.py?h=v2.2a3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-09-08T03:37:56Z</updated>
<entry>
<title>It appears that unittest was changed to stop hoarding raw exception data,</title>
<updated>2001-09-08T03:37:56Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-08T03:37:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2d84f2c95a59b815ef6864805bb6b04b79d0e106'/>
<id>urn:sha1:2d84f2c95a59b815ef6864805bb6b04b79d0e106</id>
<content type='text'>
saving instead a traceback string, but test_support's run_unittest was
still peeking into unittest internals and trying to pick apart unittest's
errors and failures vectors as if they contained exc_info() tuples instead
of strings.
Whatever, when a unittest-based test failed, test_support blew up.  I'm
not sure this is the right way to fix it; it simply gets me unstuck.
</content>
</entry>
<entry>
<title>Two small changes to the resource usage option:</title>
<updated>2001-09-06T16:09:41Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-06T16:09:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fe3f6969f54cfd3df24f54572a809e0deb47064f'/>
<id>urn:sha1:fe3f6969f54cfd3df24f54572a809e0deb47064f</id>
<content type='text'>
(1) Allow multiple -u options to extend each other (and the initial
    value of use_resources passed into regrtest.main()).

(2) When a test is run stand-alone (not via regrtest.py), needed
    resources are always granted.
</content>
</entry>
<entry>
<title>use_large_resources =&gt; use_resources</title>
<updated>2001-08-20T22:29:23Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2001-08-20T22:29:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c0fb605ce3734e7d13301f9a232b12eaa09618ad'/>
<id>urn:sha1:c0fb605ce3734e7d13301f9a232b12eaa09618ad</id>
<content type='text'>
requires(): New function which can be used to `assert' that a specific
    -u/--use resource flag is present.  Raises a TestSkipped if not.
    This is used in test_largefile and test_socket_ssl to enable
    external or resource consumptive tests that are normally
    disabled.
</content>
</entry>
<entry>
<title>Patch #445762: Support --disable-unicode</title>
<updated>2001-08-17T18:39:25Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-08-17T18:39:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=339d0f720e86dc34837547c90d3003a4a68d7d46'/>
<id>urn:sha1:339d0f720e86dc34837547c90d3003a4a68d7d46</id>
<content type='text'>
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
</content>
</entry>
<entry>
<title>Give more useful information about a failing PyUnit-style test.</title>
<updated>2001-07-16T18:51:32Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-07-16T18:51:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=14f6c18b6250b66777b6e46003c5f37ef6327890'/>
<id>urn:sha1:14f6c18b6250b66777b6e46003c5f37ef6327890</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for Windows using "mbcs" as the default Unicode encoding when dealing with the file system.  As discussed on python-dev and in patch 410465.</title>
<updated>2001-05-13T08:04:26Z</updated>
<author>
<name>Mark Hammond</name>
<email>mhammond@skippinet.com.au</email>
</author>
<published>2001-05-13T08:04:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ef8b654bbea15dc55767a7095e01dff7a3ca86cb'/>
<id>urn:sha1:ef8b654bbea15dc55767a7095e01dff7a3ca86cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Get rid of the superstitious "~" in dict hashing's "i = (~hash) &amp; mask".</title>
<updated>2001-05-13T00:19:31Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-05-13T00:19:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2f228e75e4d5ac8c3eb4a6334dbc43243bff1095'/>
<id>urn:sha1:2f228e75e4d5ac8c3eb4a6334dbc43243bff1095</id>
<content type='text'>
The comment following used to say:
	/* We use ~hash instead of hash, as degenerate hash functions, such
	   as for ints &lt;sigh&gt;, can have lots of leading zeros. It's not
	   really a performance risk, but better safe than sorry.
	   12-Dec-00 tim:  so ~hash produces lots of leading ones instead --
	   what's the gain? */
That is, there was never a good reason for doing it.  And to the contrary,
as explained on Python-Dev last December, it tended to make the *sum*
(i + incr) &amp; mask (which is the first table index examined in case of
collison) the same "too often" across distinct hashes.

Changing to the simpler "i = hash &amp; mask" reduced the number of string-dict
collisions (== # number of times we go around the lookup for-loop) from about
6 million to 5 million during a full run of the test suite (these are
approximate because the test suite does some random stuff from run to run).
The number of collisions in non-string dicts also decreased, but not as
dramatically.

Note that this may, for a given dict, change the order (wrt previous
releases) of entries exposed by .keys(), .values() and .items().  A number
of std tests suffered bogus failures as a result.  For dicts keyed by
small ints, or (less so) by characters, the order is much more likely to be
in increasing order of key now; e.g.,

&gt;&gt;&gt; d = {}
&gt;&gt;&gt; for i in range(10):
...    d[i] = i
...
&gt;&gt;&gt; d
{0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9}
&gt;&gt;&gt;

Unfortunately. people may latch on to that in small examples and draw a
bogus conclusion.

test_support.py
    Moved test_extcall's sortdict() into test_support, made it stronger,
    and imported sortdict into other std tests that needed it.
test_unicode.py
    Excluced cp875 from the "roundtrip over range(128)" test, because
    cp875 doesn't have a well-defined inverse for unicode("?", "cp875").
    See Python-Dev for excruciating details.
Cookie.py
    Chaged various output functions to sort dicts before building
    strings from them.
test_extcall
    Fiddled the expected-result file.  This remains sensitive to native
    dict ordering, because, e.g., if there are multiple errors in a
    keyword-arg dict (and test_extcall sets up many cases like that), the
    specific error Python complains about first depends on native dict
    ordering.
</content>
</entry>
<entry>
<title>In Jython, `@' is not allowed in module names.  Extend the TESTFN test</title>
<updated>2001-03-23T18:04:02Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2001-03-23T18:04:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=559f6680c27f346c89e6dd29ba3235f7719ea6a7'/>
<id>urn:sha1:559f6680c27f346c89e6dd29ba3235f7719ea6a7</id>
<content type='text'>
to use "$test" when in Jython.  Closes SF patch #403668.
</content>
</entry>
<entry>
<title>When the regression test is run in verbose mode, make the PyUNIT-based</title>
<updated>2001-03-23T04:21:17Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-03-23T04:21:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=84a5934f8a09b670a8554a9e84f59006bc4c087c'/>
<id>urn:sha1:84a5934f8a09b670a8554a9e84f59006bc4c087c</id>
<content type='text'>
tests a little noisier, providing more progress information.
</content>
</entry>
<entry>
<title>Updated to latest PyUnit version (1.31 in PyUnit CVS); test_support.py</title>
<updated>2001-03-22T08:45:36Z</updated>
<author>
<name>Steve Purcell</name>
<email>steve@pythonconsulting.com</email>
</author>
<published>2001-03-22T08:45:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5ddd1a8dcb260eb8c25d7d27f7623f020648ad70'/>
<id>urn:sha1:5ddd1a8dcb260eb8c25d7d27f7623f020648ad70</id>
<content type='text'>
changed accordingly.
</content>
</entry>
</feed>
