[KSS-checkins] r49285 - kukit/kss.base/trunk/kss/base
jvloothuis at codespeak.net
jvloothuis at codespeak.net
Sun Dec 2 16:12:19 CET 2007
Author: jvloothuis
Date: Sun Dec 2 16:12:18 2007
New Revision: 49285
Modified:
kukit/kss.base/trunk/kss/base/plugin.txt
Log:
Added sorting to the plugin test so that it works consistently on all machines (was broken for Balazs)
Modified: kukit/kss.base/trunk/kss/base/plugin.txt
==============================================================================
--- kukit/kss.base/trunk/kss/base/plugin.txt (original)
+++ kukit/kss.base/trunk/kss/base/plugin.txt Sun Dec 2 16:12:18 2007
@@ -117,8 +117,15 @@
iterator of all javascripts from a certain path.
>>> from kss.base.plugin import javascripts_from, module_path
- >>> javascripts_from(module_path(kss.base))
- [.../kukit/kukit/serveraction.js', ...'.../kukit/kukit/dom.js'...]
+ >>> scripts = javascripts_from(module_path(kss.base))
+
+To test the output we will first sort the scripts (otherwise the test
+may fail on different systems). Keep this in mind when creating your
+own plugins. If you need a consistent order either sort the output or
+use a different way of creating the list of scripts.
+
+ >>> list(sorted(scripts))
+ [.../kukit/kukit/dom.js', ..., .../kukit/kukit/serveraction.js', ...]
When we try to load from something which is not a directory we will
get an error.
More information about the Kukit-checkins
mailing list