Ticket #12299: trac-12299_java_doctest_opt.patch

File trac-12299_java_doctest_opt.patch, 1.0 KB (added by gutow, 9 years ago)

make java dependent doctests in jmoldata.py optional

  • sage/interfaces/jmoldata.py

    # HG changeset patch
    # User Jonathan Gutow <gutow@uwosh.edu>
    # Date 1342529416 18000
    # Node ID c281fb06815b5a694eab791501aec293e5cb98ea
    # Parent  b5e69c56edb067f41ee49a84cf82ec73a00994cf
    trac 12299 - make java dependent doctests in jmoldata.py optional
    
    diff --git a/sage/interfaces/jmoldata.py b/sage/interfaces/jmoldata.py
    a b  
    161161            sage: D.export_jmol(archive_name)  #not scaled properly...need some more steps.
    162162            sage: testfile = os.path.join(SAGE_TMP, "testimage.png")
    163163            sage: script = 'set defaultdirectory "%s"\n script SCRIPT\n'%archive_name
    164             sage: JData.export_image(targetfile =testfile,datafile = script, image_type="PNG")
    165             sage: print os.path.exists(testfile)
     164            sage: JData.export_image(targetfile =testfile,datafile = script, image_type="PNG") # optional -- java
     165            sage: print os.path.exists(testfile) # optional -- java
    166166            True
    167167
    168168         """