diff cmd2.py @ 255:573bf9c2a043

multiple tests hanging, grr
author Catherine Devlin <catherine.devlin@gmail.com>
date Thu, 02 Apr 2009 13:10:17 -0400
parents 07dff0ba981e
children d62bb3dd58a0
line wrap: on
line diff
--- a/cmd2.py	Wed Apr 01 18:05:51 2009 -0400
+++ b/cmd2.py	Thu Apr 02 13:10:17 2009 -0400
@@ -1112,10 +1112,11 @@
     transcriptFileName = ''
     transcriptExtension = ''
     def fetchTranscripts(self):
+        import pdb; pdb.set_trace()
         self.transcripts = []
-        if self.CmdApp.testfile:
-            transcriptfilenames = [self.CmdApp.testfile]
-        elif self.transcriptExtension:
+        #if self.CmdApp.testfile:
+        #    transcriptfilenames = [self.CmdApp.testfile]
+        if self.transcriptExtension:
             transcriptfilenames = glob.glob('*.' + self.transcriptExtension)
         elif self.transcriptFileName:
             transcriptfilenames = [self.transcriptFileName]
@@ -1128,6 +1129,7 @@
         if self.CmdApp:
             self.outputTrap = OutputTrap()
             self.cmdapp = self.CmdApp()
+            import pdb; pdb.set_trace()
             self.fetchTranscripts()
     def assertEqualEnough(self, got, expected, message):
         got = got.strip().splitlines()
@@ -1139,7 +1141,6 @@
             self.assert_(re.match(matchme, linegot.strip()), message)
     def testall(self):
         if self.CmdApp:
-            self.fetchTranscripts()
             for transcript in self.transcripts:
                 self._test_transcript(transcript)
     def _test_transcript(self, transcript):