Relax command-not-found doctest messages.
authorW. Trevor King <wking@drexel.edu>
Thu, 21 Oct 2010 01:36:25 +0000 (18:36 -0700)
committerW. Trevor King <wking@drexel.edu>
Thu, 21 Oct 2010 01:36:25 +0000 (18:36 -0700)
pysawsim/manager/__init__.py

index 71d591c87f78252ddf73f679fef568bdd09eed83..5e032f197586bc10d8a76e3db4976a9b0f2a1a75 100644 (file)
@@ -139,17 +139,17 @@ class InvokeJob (Job):
 
     >>> j = InvokeJob(id=3, target='missing_command')
     >>> j.run()
-    >>> print j.status
+    >>> print j.status  # doctest: +ELLIPSIS
     Command failed (127):
-      /bin/sh: missing_command: command not found
+      /bin/sh: missing_command: ...not found
     <BLANKLINE>
     <BLANKLINE>
     while executing
       missing_command
     >>> j.data['stdout']
     ''
-    >>> j.data['stderr']
-    '/bin/sh: missing_command: command not found\\n'
+    >>> j.data['stderr']  # doctest: +ELLIPSIS
+    '/bin/sh: missing_command: ...not found\\n'
     """
     def run(self):
         try: