##// END OF EJS Templates
Skip writable_dir test on Windows...
Skip writable_dir test on Windows It doesn't seem possible to create a dir that the owner can't write to on Windows, so the test doesn't run properly. If the test can be updated to reliably create/find a user read-only directory (probably via NTFS ACLs and win32security), then it can be unskipped.

File last commit:

r1524:cdaaaa38
r4483:28c77fe4
Show More
simple.py
33 lines | 493 B | text/x-python | PythonLexer
"""Simple example using doctests.
This file just contains doctests both using plain python and IPython prompts.
All tests should be loaded by nose.
"""
def pyfunc():
"""Some pure python tests...
>>> pyfunc()
'pyfunc'
>>> import os
>>> 2+3
5
>>> for i in range(3):
... print i,
... print i+1,
...
0 1 1 2 2 3
"""
return 'pyfunc'
def ipyfunc2():
"""Some pure python tests...
>>> 1+1
2
"""
return 'pyfunc2'