[Zope-CVS] SVN: zpkgtools/trunk/zpkgtools/tests/test_include.py
exclusions are paths, so their parts need to be joined properly
Fred L. Drake, Jr.
fdrake at gmail.com
Fri Sep 17 14:05:51 EDT 2004
Log message for revision 27619:
exclusions are paths, so their parts need to be joined properly
Changed:
U zpkgtools/trunk/zpkgtools/tests/test_include.py
-=-
Modified: zpkgtools/trunk/zpkgtools/tests/test_include.py
===================================================================
--- zpkgtools/trunk/zpkgtools/tests/test_include.py 2004-09-17 17:51:52 UTC (rev 27618)
+++ zpkgtools/trunk/zpkgtools/tests/test_include.py 2004-09-17 18:05:51 UTC (rev 27619)
@@ -153,7 +153,7 @@
# These are "uncooked", so wildcards haven't been expanded.
self.assertEqual(len(specs.collection.excludes), 3)
self.assert_("foobar.txt" in specs.collection.excludes)
- self.assert_("doc/todo-*.txt" in specs.collection.excludes)
+ self.assert_(join("doc", "todo-*.txt") in specs.collection.excludes)
self.assert_(include.PACKAGE_CONF in specs.collection.excludes)
# Now populate the source dir:
self.write_file("foobar.txt", "some text\n")
@@ -166,8 +166,10 @@
specs.collection.cook()
self.assertEqual(len(specs.collection.excludes), 4)
self.assert_("foobar.txt" in specs.collection.excludes)
- self.assert_("doc/todo-1.txt" in specs.collection.excludes)
- self.assert_("doc/todo-2.txt" in specs.collection.excludes)
+ self.assert_(
+ join("doc", "todo-1.txt") in specs.collection.excludes)
+ self.assert_(
+ join("doc", "todo-2.txt") in specs.collection.excludes)
self.assert_(include.PACKAGE_CONF in specs.collection.excludes)
finally:
shutil.rmtree(docdir)
More information about the Zope-CVS
mailing list