Mercurial > mozilla > hg > ProfileManager
changeset 23:a8601c2273b5
* hopefully fix tests
* correct typo in ProfileManager
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 15:43:02 -0700 |
parents | 956f5a4c589a |
children | 853a3f4b9659 |
files | profilemanager/manager.py profilemanager/tests/test_profilemanager.txt |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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: