You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2014/02/06 21:20:57 UTC

[2/5] git commit: [#7042] Fix test

[#7042] Fix test

Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/64ebf57b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/64ebf57b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/64ebf57b

Branch: refs/heads/master
Commit: 64ebf57b995798adb366335294f7903e9f01c716
Parents: b327c9a
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Thu Feb 6 02:38:12 2014 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Thu Feb 6 16:58:44 2014 +0000

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_user_profile.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/64ebf57b/Allura/allura/tests/functional/test_user_profile.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_user_profile.py b/Allura/allura/tests/functional/test_user_profile.py
index 6f01e6a..0dbbe77 100644
--- a/Allura/allura/tests/functional/test_user_profile.py
+++ b/Allura/allura/tests/functional/test_user_profile.py
@@ -164,7 +164,8 @@ class TestUserProfile(TestController):
             return m
         eps = map(ep, ['a', 'b', 'c', 'd'])
         order = {'user_profile_sections.order': 'b, d,c , f '}
-        delattr(type(app), '_sections')
+        if hasattr(type(app), '_sections'):
+            delattr(type(app), '_sections')
         with mock.patch('allura.lib.helpers.iter_entry_points') as iep:
             with mock.patch.dict(tg.config, order):
                 iep.return_value = eps