[livecoding] r142 committed - - namespace.py: Subclasses of unittest.TestCase are no longer exported...

2 views
Skip to first unread message

livec...@googlecode.com

unread,
Feb 22, 2010, 10:52:16 PM2/22/10
to py-livecod...@googlegroups.com
Revision: 142
Author: richard.m.tew
Date: Mon Feb 22 19:51:09 2010
Log: - namespace.py: Subclasses of unittest.TestCase are no longer exported
to the relevant namespace, which is the correct behaviour as they are only
there for code validation and not for usage.
http://code.google.com/p/livecoding/source/detail?r=142

Modified:
/trunk/namespace.py

=======================================
--- /trunk/namespace.py Sun Feb 21 17:06:02 2010
+++ /trunk/namespace.py Mon Feb 22 19:51:09 2010
@@ -122,8 +122,6 @@
return

logger.error("Error executing script file '%s'\n%s",
self.filePath, "".join(self.lastError).rstrip("\r\n"))
- # for line in self.lastError:
- #logger.error(line.rstrip("\r\n"))

if flush:
self.lastError = None
@@ -150,7 +148,7 @@
if v.__module__ != "__builtin__":
exportable = False
# Skip actual builtin objects.
- elif v in builtinValues:
+ elif v in builtinValues or issubclass(v,
unittest.TestCase):
exportable = False

yield k, v, valueType, exportable

Reply all
Reply to author
Forward
0 new messages