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 2013/02/28 23:38:16 UTC
[19/20] git commit: [#5788] Fixed failing test_syntax tests
[#5788] Fixed failing test_syntax tests
Signed-off-by: Cory Johns <jo...@geek.net>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/61f6731d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/61f6731d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/61f6731d
Branch: refs/heads/cj/5788
Commit: 61f6731d37bfc5984274ffbe73b6a9bf455e768b
Parents: a04b82f
Author: Cory Johns <jo...@geek.net>
Authored: Thu Feb 28 22:32:13 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Thu Feb 28 22:32:44 2013 +0000
----------------------------------------------------------------------
Allura/allura/scripts/refresh_last_commits.py | 4 ++--
AlluraTesting/alluratest/test_syntax.py | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/61f6731d/Allura/allura/scripts/refresh_last_commits.py
----------------------------------------------------------------------
diff --git a/Allura/allura/scripts/refresh_last_commits.py b/Allura/allura/scripts/refresh_last_commits.py
index 5ed409a..4c6ffb7 100644
--- a/Allura/allura/scripts/refresh_last_commits.py
+++ b/Allura/allura/scripts/refresh_last_commits.py
@@ -175,9 +175,9 @@ class RefreshLastCommits(ScriptTask):
@contextmanager
def time(timings):
- s = datetime.now()
+ s = datetime.utcnow()
yield
- timings.append((datetime.now() - s).total_seconds())
+ timings.append((datetime.utcnow() - s).total_seconds())
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/61f6731d/AlluraTesting/alluratest/test_syntax.py
----------------------------------------------------------------------
diff --git a/AlluraTesting/alluratest/test_syntax.py b/AlluraTesting/alluratest/test_syntax.py
index 2335a62..a3f7a4a 100644
--- a/AlluraTesting/alluratest/test_syntax.py
+++ b/AlluraTesting/alluratest/test_syntax.py
@@ -67,6 +67,7 @@ def test_no_prints():
'Allura/ez_setup/',
'Allura/push_re.py',
'Allura/allura/lib/AsciiDammit.py',
+ '/scripts/',
'ForgeMail/forgemail/sstress.py',
]
if run(find_py + " | grep -v '" + "' | grep -v '".join(skips) + "' | xargs grep -v '^ *#' | grep 'print ' | grep -E -v '(pprint|#pragma: ?printok)' ") != 1: