[Zope-CVS] CVS: Packages/FunctionalTests - Framework.py:1.15

Tres Seaver tseaver@zope.com
Wed, 20 Mar 2002 07:13:50 -0500


Update of /cvs-repository/Packages/FunctionalTests
In directory cvs.zope.org:/tmp/cvs-serv5039

Modified Files:
	Framework.py 
Log Message:


  - Clean up imports.

  - Switch to using Python expressions for load sequence string,
    to permit "looping" via tuple expansion.


=== Packages/FunctionalTests/Framework.py 1.14 => 1.15 ===
-import httplib, urllib, urlparse, base64, Cookie
-import MimeWriter, StringIO
+import string
+import os
+import re
+import time
+import httplib
+import urllib
+import urlparse
+import base64
+import Cookie
+import MimeWriter
+import StringIO
 
 import ConfigParserExt
 
@@ -973,8 +981,8 @@
     def _parseLoadSequence( self ):
 
         if self._load_requests is None:
-            seq = self._load_sequence
-            self._load_requests = seq and seq.split() or []
+            if self._load_sequence:
+                self._load_requests = eval( self._load_sequence )
 
     def hasLoadRequests( self ):