Changes between Initial Version and Version 1 of Ticket #9970


Ignore:
Timestamp:
09/22/10 22:36:33 (9 years ago)
Author:
mpatel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9970 – Description

    initial v1  
    2424            True
    2525}}}
    26 On sage.math, I get
     26The script
    2727{{{
    2828#!python
    29 sage: import tempfile
    30 sage:
    31 sage: fail = 0
    32 sage: for i in xrange(1000):
    33 ....:     tmpdir = tempfile.mkdtemp()
    34 ....:     r.chdir(tmpdir)
    35 ....:     if tmpdir not in sageobj(r.getwd()):
    36 ....:             fail += 1
    37 ....:
    38 sage: print fail
    39 13
     29import tempfile
     30
     31fail = 0
     32for i in xrange(1000):
     33    tmpdir = tempfile.mkdtemp()
     34    r.chdir(tmpdir)
     35    if tmpdir not in sageobj(r.getwd()):
     36        fail += 1
     37
     38print fail
    4039}}}
    41 for example.
     40prints 12, 11, 14, etc., when run repeatedly on sage.math.