Attachment 'fix-random.patch'

Download

   1 # HG changeset patch
   2 # User Robert Bradshaw <[email protected]>
   3 # Date 1213428385 25200
   4 # Node ID c091bd0f7268cf1fddfc13e5f0ed033a198bb8bb
   5 # Parent  5b81ccd1315d7b95f45bbc716827bc89282180e6
   6 ignore random doctests (for now)
   7 
   8 diff -r 5b81ccd1315d -r c091bd0f7268 sage-doctest
   9 --- a/sage-doctest	Sun Mar 30 20:29:18 2008 -0700
  10 +++ b/sage-doctest	Sat Jun 14 00:26:25 2008 -0700
  11 @@ -66,12 +66,14 @@ NONE=0; LONG_TIME=1; RANDOM=2; OPTIONAL=
  12  NONE=0; LONG_TIME=1; RANDOM=2; OPTIONAL=3; NOT_IMPLEMENTED=4; NOT_TESTED=5
  13  
  14  def comment_modifier(s):
  15 +    v = []
  16 +    if 'random' in s: # COERCE TODO: changed for testing
  17 +        v.append(RANDOM)
  18      sind = s.find('#')
  19      if sind == -1 or s[sind:sind+3] == '###':
  20 -        return []
  21 +        return v
  22      eind = s.find('###',sind+1)
  23      L = s[sind+1:eind].lower()
  24 -    v = []
  25      if ('optional' in L) or ('known bug' in L):
  26          v.append(OPTIONAL)
  27      if 'long time' in L:
  28 @@ -80,8 +82,6 @@ def comment_modifier(s):
  29          v.append(NOT_IMPLEMENTED)
  30      if 'not tested' in L:
  31          v.append(NOT_TESTED)
  32 -    if 'random' in L:
  33 -        v.append(RANDOM)
  34      return v
  35  
  36  def preparse_line_with_prompt(L):

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2008-02-22 08:02:17, 9.1 KB) [[attachment:coerce-free-module.patch]]
  • [get | view] (2008-06-14 07:28:06, 1.1 KB) [[attachment:fix-random.patch]]
  • [get | view] (2008-04-16 03:14:59, 1.8 KB) [[attachment:list_parents.sage]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.