[cairo-commit] pycairo/test test.test,1.1,1.2

Steve Chaplin commit at pdx.freedesktop.org
Wed Apr 6 19:09:59 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/test
In directory gabe:/tmp/cvs-serv16838/test

Modified Files:
	test.test 
Log Message:
SC 2005/04/07

Index: test.test
===================================================================
RCS file: /cvs/cairo/pycairo/test/test.test,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- test.test	12 Mar 2005 10:28:18 -0000	1.1
+++ test.test	7 Apr 2005 02:09:57 -0000	1.2
@@ -1,8 +1,15 @@
 # doctest text file
 
-# run non-gui example scripts, check they run and produce no output (error messages)
 >>> import os
->>> os.chdir('../examples')
+>>> cwd = os.getcwd()
+
+# run non-gui example scripts, check they run and produce no output (error messages)
+>>> os.chdir('%s/../examples' % cwd)
 >>> files = [f for f in os.listdir('.') if f.endswith('.py')]
 >>> for f in files:
 ...     ret = os.system ('python %s' % f)
+
+# run png snippets
+>>> os.chdir('%s/../examples/cairo_snippets' % cwd)
+>>> ret = os.system ('python snippets_png.py -s')
+




More information about the cairo-commit mailing list