Currently planned for release mid-July.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Status Code: 500 | |
| Exception: | |
| Stacktrace: | |
| org.apache.commons.jelly.JellyTagException: jar:file:/home/tyler/.hudson/war/WEB-INF/lib/hudson-core-1.308.jar!/hudson/model/View/index.jelly:31:42: Java heap space | |
| at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:713) | |
| at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:282) | |
| at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) | |
| at org.kohsuke.stapler.jelly.CustomTagLibrary$StaplerDynamicTag$1.run(CustomTagLibrary.java:147) | |
| at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91) | |
| at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PerformanceTest(unittest.TestCase): | |
| iterations = 10000 | |
| display = False | |
| def setUp(self): | |
| super(PerformanceTest, self).setUp() | |
| statprof.start() | |
| def runTest(self): | |
| for i in xrange(self.iterations): | |
| if hasattr(self, 'performanceSample'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> DynamicMethodCompilationTest (1000000 iterations) | |
| % cumulative self | |
| time seconds seconds name | |
| 49.86 89.94 72.09 Template.py:1017:__init__ | |
| tyler@starfruit:~> cd source/github | |
| 49.86 89.94 72.09 Template.py:1017:__init__ | |
| 21.39 36.98 30.93 Template.py:334:compile | |
| 7.46 12.81 10.79 Template.py:1413:_initCheetahInstance | |
| 3.70 10.82 5.35 DynamicallyCompiledCheetahTemplate.py:66:testMethod | |
| 3.53 5.11 5.11 VerifyType.py:40:VerifyType |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Python.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> DynamicSimpleCompilationTest (1000000 iterations) | |
| % cumulative self | |
| time seconds seconds name | |
| 48.52 133.64 109.47 Template.py:1018:__init__ | |
| 19.07 46.23 43.03 Template.py:335:compile | |
| 6.68 21.61 15.08 Template.py:1412:_initCheetahInstance | |
| 4.23 29.53 9.54 DynamicallyCompiledCheetahTemplate.py:66:respond | |
| 4.14 9.34 9.34 Filters.py:26:filter | |
| 2.40 34.94 5.41 Template.py:996:__str__ | |
| 2.29 138.82 5.17 DynamicallyCompiledCheetahTemplate.py:55:__init__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ECC_Decrypt_Tests | |
| test_BasicDecrypt ... [OK] | |
| ECC_Encrypt_Tests | |
| test_BasicEncrypt ... [OK] | |
| ECC_Sign_Tests | |
| test_BasicSign ... [OK] | |
| test_SignNone ... WARNING: Invalid or empty argument passed to ecc_verify() | |
| [OK] | |
| ECC_Verify_Tests | |
| test_BadVerification ... [OK] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Lolwut(unittest.TestCase): | |
| def test_Fail(self): | |
| template = ''' | |
| #set $title = $title.split('|')[0] | |
| This is my title: $title | |
| ''' | |
| template = Cheetah.Template.Template.compile(template) | |
| template = template(namespaces={'title' : 'Thing | Other'}).respond() | |
| print template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Cheetah.Filters | |
| class UnicodeHarder(Cheetah.Filters.Filter): | |
| def filter(self, val, | |
| encoding='utf8', | |
| str=str, | |
| **kw): | |
| """ Try our best to unicode our strings """ | |
| if not val: | |
| return u'' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/Tests/CheetahWrapper.py b/src/Tests/CheetahWrapper.py | |
| index 11b903f..e44bc86 100644 | |
| --- a/src/Tests/CheetahWrapper.py | |
| +++ b/src/Tests/CheetahWrapper.py | |
| @@ -11,10 +11,14 @@ Besides unittest usage, recognizes the following command-line options: | |
| --output | |
| Show the output of each subcommand. (Normally suppressed.) | |
| ''' | |
| -import os, shutil, sys, tempfile | |
| -import unittest_local_copy as unittest |