<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_userstring.py, branch v2.4a2</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_userstring.py?h=v2.4a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_userstring.py?h=v2.4a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-08-04T07:38:35Z</updated>
<entry>
<title>SF #989185: Drop unicode.iswide() and unicode.width() and add</title>
<updated>2004-08-04T07:38:35Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2004-08-04T07:38:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e9ddfbb41207328d5c89061067f3431e00711fda'/>
<id>urn:sha1:e9ddfbb41207328d5c89061067f3431e00711fda</id>
<content type='text'>
unicodedata.east_asian_width().  You can still implement your own
simple width() function using it like this:
    def width(u):
        w = 0
        for c in unicodedata.normalize('NFC', u):
            cwidth = unicodedata.east_asian_width(c)
            if cwidth in ('W', 'F'): w += 2
            else: w += 1
        return w
</content>
</entry>
<entry>
<title>Add iswide() and width() method for UserString according as the</title>
<updated>2004-06-04T03:18:12Z</updated>
<author>
<name>Hye-Shik Chang</name>
<email>hyeshik@gmail.com</email>
</author>
<published>2004-06-04T03:18:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5f5125997beba34f79faa0751c6fa1fa74d97ae2'/>
<id>urn:sha1:5f5125997beba34f79faa0751c6fa1fa74d97ae2</id>
<content type='text'>
addition to unicode objects.
</content>
</entry>
<entry>
<title>Combine the functionality of test_support.run_unittest()</title>
<updated>2003-05-01T17:45:56Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2003-05-01T17:45:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=21d3a32b99c5763444c34c189ef653ac9745f3c4'/>
<id>urn:sha1:21d3a32b99c5763444c34c189ef653ac9745f3c4</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Port all string tests to PyUnit and share as much tests</title>
<updated>2003-02-21T12:53:50Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2003-02-21T12:53:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0fd583ce4d1500938c96c12c698a535ad0938470'/>
<id>urn:sha1:0fd583ce4d1500938c96c12c698a535ad0938470</id>
<content type='text'>
between str, unicode, UserString and the string module
as possible. This increases code coverage in stringobject.c
from 83% to 86% and should help keep the string classes
in sync in the future. From SF patch #662807
</content>
</entry>
<entry>
<title>Moved inplace add and multiply methods from UserString to MutableString.</title>
<updated>2002-08-09T01:37:06Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2002-08-09T01:37:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c35491ee3a0f3999791de83e65ef94994058ac5e'/>
<id>urn:sha1:c35491ee3a0f3999791de83e65ef94994058ac5e</id>
<content type='text'>
Closes SF Bug #592573 where inplace add mutated a UserString.
Added unittests to verify the bug is cleared.
</content>
</entry>
<entry>
<title>Committing patch #591250 which provides "str1 in str2" when str1 is a</title>
<updated>2002-08-06T16:58:21Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2002-08-06T16:58:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=817918cc3c10d0ed6b14e0e3f2bc0c5227c508cd'/>
<id>urn:sha1:817918cc3c10d0ed6b14e0e3f2bc0c5227c508cd</id>
<content type='text'>
string of longer than 1 character.
</content>
</entry>
<entry>
<title>Get rid of relative imports in all unittests.  Now anything that</title>
<updated>2002-07-23T19:04:11Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2002-07-23T19:04:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=04f357cffef6d764f2f0ff2671dabde75ec250d1'/>
<id>urn:sha1:04f357cffef6d764f2f0ff2671dabde75ec250d1</id>
<content type='text'>
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".

This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).

Now Tim and Jack can have at it. :)
</content>
</entry>
<entry>
<title>I am mad.  This test never worked!</title>
<updated>2002-04-12T16:25:39Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-04-12T16:25:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d854f3b3cc1daaab6b9cad00a2e2baf482dde382'/>
<id>urn:sha1:d854f3b3cc1daaab6b9cad00a2e2baf482dde382</id>
<content type='text'>
The test function's signature should be

    test(methodname, input, output, *args)

but the output argument was omitted.  This caused all tests to fail,
because the expected output was passed as the initial argument to the
method call.  But because of the way the test works (it compares the
results for a regular string to the results for a UserString instance
with the same value, and it's OK if both raise the same exception) the
test never failed!

I've fixed this, and also cleaned up a few warts in the verbose
output.  Finally, I've made it possible to run the test stand-alone in
verbose mode by passing -v as a command line argument.

Now, the test will report failure related to zfill.  That's not my
fault, that's a legitimate problem: the string_tests.py file contains
a test for the zfill() method (just added) but this method is not
implemented.  The responsible party will surely fix this soon now.
</content>
</entry>
<entry>
<title>String method conversion.</title>
<updated>2001-02-09T12:00:47Z</updated>
<author>
<name>Eric S. Raymond</name>
<email>esr@thyrsus.com</email>
</author>
<published>2001-02-09T12:00:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2846b0ab417dbfc76d2f9b52b5613ad4fe8feb63'/>
<id>urn:sha1:2846b0ab417dbfc76d2f9b52b5613ad4fe8feb63</id>
<content type='text'>
(This one was trivial -- no actual string. references in it!)
</content>
</entry>
<entry>
<title>a bold attempt to fix things broken by MAL's verify patch: import</title>
<updated>2001-01-17T21:51:36Z</updated>
<author>
<name>Fredrik Lundh</name>
<email>fredrik@pythonware.com</email>
</author>
<published>2001-01-17T21:51:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f785042433f0c43ed1ba2ba0388fc51d79bcf5c3'/>
<id>urn:sha1:f785042433f0c43ed1ba2ba0388fc51d79bcf5c3</id>
<content type='text'>
'verify' iff it's used by a test module...
</content>
</entry>
</feed>
