[Checkins] SVN: grok/trunk/src/grok/ - fixed typo and added (whitebox) test for bootstrapping flag

Christian Theune ct at gocept.com
Thu Oct 19 05:29:14 EDT 2006


Log message for revision 70802:
   - fixed typo and added (whitebox) test for bootstrapping flag
  

Changed:
  U   grok/trunk/src/grok/_grok.py
  U   grok/trunk/src/grok/tests/scan/package.py

-=-
Modified: grok/trunk/src/grok/_grok.py
===================================================================
--- grok/trunk/src/grok/_grok.py	2006-10-19 08:31:03 UTC (rev 70801)
+++ grok/trunk/src/grok/_grok.py	2006-10-19 09:29:12 UTC (rev 70802)
@@ -61,7 +61,7 @@
     global _bootstrapped
     if not _bootstrapped:
         bootstrap()
-        _boostrapped = True
+        _bootstrapped = True
 
     module_info = scan.module_info_from_dotted_name(dotted_name)
     grok_tree(module_info)

Modified: grok/trunk/src/grok/tests/scan/package.py
===================================================================
--- grok/trunk/src/grok/tests/scan/package.py	2006-10-19 08:31:03 UTC (rev 70801)
+++ grok/trunk/src/grok/tests/scan/package.py	2006-10-19 09:29:12 UTC (rev 70802)
@@ -26,4 +26,10 @@
   <h1>ME GROK HUNT MAMMOTH!</h1>
   </body>
   </html>
+
+grok() currently does a fair bit of bootstrapping. This is a whitebox test to check whether we do this only once:
+
+  >>> grok._grok._bootstrapped
+  True
+
 """



More information about the Checkins mailing list