PDOS

[uia] / trunk / uia / lib / conftest.py  

View of /trunk/uia/lib/conftest.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2536 - (download) (as text) (annotate)
Thu May 31 20:35:16 2007 UTC (2 years, 5 months ago) by ctl
File size: 469 byte(s)
 r2841@brainchild:  ctl | 2007-05-31 16:36:40 -0400
 merge conftest changes into trunk
 
import py.test.collect

class all_in_directory( py.test.collect.Directory ):
  def filefilter( self, path ):
    if path.check( basename = 'conftest.py' ):   return False
    if path.check( basename = 'Setup.py' ):      return False
    if path.check( basename = 'basic_test.py' ): return False
    return path.check( ext = ".py" )

Directory = all_in_directory

try:
  if 0:
    import psyco
    psyco.log('/tmp/psyco.log')
    psyco.full()
except ImportError:
  pass

Maintained by PDOS
ViewVC Help
Powered by ViewVC 1.0.3