incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [1/2] git commit: [#5788] Fixed failing test_syntax tests
Date Thu, 28 Feb 2013 22:40:33 GMT
[#5788] Fixed failing test_syntax tests

Signed-off-by: Cory Johns <johnsca@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/master
Commit: 61f6731d37bfc5984274ffbe73b6a9bf455e768b
Parents: a04b82f
Author: Cory Johns <johnsca@geek.net>
Authored: Thu Feb 28 22:32:13 2013 +0000
Committer: Cory Johns <johnsca@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:


Mime
View raw message