<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_glob.py, branch 2.6</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_glob.py?h=2.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_glob.py?h=2.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2007-03-07T08:31:51Z</updated>
<entry>
<title>Patch #1001604: glob.glob() now returns unicode filenames if it was</title>
<updated>2007-03-07T08:31:51Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2007-03-07T08:31:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=71ff64674375b355c9449f8b511b49756d880e48'/>
<id>urn:sha1:71ff64674375b355c9449f8b511b49756d880e48</id>
<content type='text'>
given a unicode argument and os.listdir() returns unicode filenames.
</content>
</entry>
<entry>
<title>glob('anything*/') would fail because isdir is in os.path, not os.</title>
<updated>2006-04-09T03:35:43Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-04-09T03:35:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a31bf18c48654640b7020e8900928f9db862a1a5'/>
<id>urn:sha1:a31bf18c48654640b7020e8900928f9db862a1a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clean up tests by reusing functions from other modules:</title>
<updated>2005-01-08T13:28:54Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2005-01-08T13:28:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a3beee185cb374dfb2c68200e8b0332e28e73204'/>
<id>urn:sha1:a3beee185cb374dfb2c68200e8b0332e28e73204</id>
<content type='text'>
* replace deltree with shutil.rmtree()
* replace mkdirs with os.makedirs()
* fold touchfile into GlobTests.mktemp()
</content>
</entry>
<entry>
<title>Patch #943206:</title>
<updated>2005-01-08T13:13:19Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2005-01-08T13:13:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=836f5433f7ee79f208186ca0d10594b22cf7e05b'/>
<id>urn:sha1:836f5433f7ee79f208186ca0d10594b22cf7e05b</id>
<content type='text'>
`glob.glob()` currently calls itself recursively to build a list of matches of
the dirname part of the pattern and then filters by the basename part. This is
effectively BFS. ``glob.glob('*/*/*/*/*/foo')`` will build a huge list of all
directories 5 levels deep even if only a handful of them contain a ``foo``
entry. A generator-based recusion would never have to store these list at once
by implementing DFS. This patch converts the `glob` function to an `iglob`
recursive generator . `glob()` now just returns ``list(iglob(pattern))``.

I also cleaned up the code a bit (reduced duplicate `has_magic()` checks and
created a second `glob0` helper func so that the main loop need not be
duplicated).

Thanks to Cherniavsky Beni for the patch!
</content>
</entry>
<entry>
<title>Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists in glob.glob.</title>
<updated>2004-08-30T10:19:56Z</updated>
<author>
<name>Johannes Gijsbers</name>
<email>jlg@dds.nl</email>
</author>
<published>2004-08-30T10:19:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ae882f798435266b41a9c8966562102345a3eda5'/>
<id>urn:sha1:ae882f798435266b41a9c8966562102345a3eda5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Migrate set() and frozenset() from the sandbox.</title>
<updated>2003-11-16T16:17:49Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-11-16T16:17:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a690a9967e715663b7a421c9ebdad91381cdf1e4'/>
<id>urn:sha1:a690a9967e715663b7a421c9ebdad91381cdf1e4</id>
<content type='text'>
* Install the unittests, docs, newsitem, include file, and makefile update.
* Exercise the new functions whereever sets.py was being used.

Includes the docs for libfuncs.tex.  Separate docs for the types are
forthcoming.
</content>
</entry>
<entry>
<title>Patch #839877: Remove unused lambda expression.</title>
<updated>2003-11-13T07:45:39Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2003-11-13T07:45:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d4e48b7f61a767dd32195ccc91949017bbef5a05'/>
<id>urn:sha1:d4e48b7f61a767dd32195ccc91949017bbef5a05</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Used sets.Set() to compare unordered sequences.</title>
<updated>2003-05-02T09:06:28Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-05-02T09:06:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=91bbd9a7b9735cba07b06400a7c467aab6facfde'/>
<id>urn:sha1:91bbd9a7b9735cba07b06400a7c467aab6facfde</id>
<content type='text'>
Improves clarity and brevity.
</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>Change the PyUnit-based tests to use the test_main() approach.  This</title>
<updated>2001-09-20T21:33:42Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-09-20T21:33:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2e2be3760ccdfd4bdde4afdd66f4078022ba3b61'/>
<id>urn:sha1:2e2be3760ccdfd4bdde4afdd66f4078022ba3b61</id>
<content type='text'>
allows using the tests with unittest.py as a script.  The tests will
still run when run as a script themselves.
</content>
</entry>
</feed>
