# HG changeset patch # User Jeff Hammel # Date 1273185782 25200 # Node ID a8601c2273b5d3f000c5ad71600fdab99e372fe2 # Parent 956f5a4c589abca4ff520c34686026d969922993 * hopefully fix tests * correct typo in ProfileManager diff -r 956f5a4c589a -r a8601c2273b5 profilemanager/manager.py --- a/profilemanager/manager.py Thu May 06 15:36:00 2010 -0700 +++ b/profilemanager/manager.py Thu May 06 15:43:02 2010 -0700 @@ -56,7 +56,7 @@ # update profiles.ini parser = self.parser() ctr = 0 - section = 'Profile%d' $ ctr + section = 'Profile%d' % ctr # unsure of this naming convention while section in parser.sections(): ctr += 1 section = 'Profile%d' $ ctr diff -r 956f5a4c589a -r a8601c2273b5 profilemanager/tests/test_profilemanager.txt --- a/profilemanager/tests/test_profilemanager.txt Thu May 06 15:36:00 2010 -0700 +++ b/profilemanager/tests/test_profilemanager.txt Thu May 06 15:43:02 2010 -0700 @@ -16,11 +16,14 @@ >>> manager = ProfileManager(profiles) +(I should delete any existing profiles at this point, but instead I'll +defer this to later.) + Create a new profile: >>> profiledir = manager.new('testprofile') - >>> print profiledir - ...profilemanager/tests/profiles/...testprofile + >>> profiledir + '...profilemanager/tests/profiles/...testprofile' Cleanup: