[pypy-svn] r16983 - pypy/release/0.7.x/pypy/tool/pytest/test

hpk at codespeak.net hpk at codespeak.net
Sun Aug 28 12:59:10 CEST 2005


Author: hpk
Date: Sun Aug 28 12:59:09 2005
New Revision: 16983

Modified:
   pypy/release/0.7.x/pypy/tool/pytest/test/test_new_count.py
Log:
skip tests that depends on mime-parsing which
does not work on python 2.4 currently apparently



Modified: pypy/release/0.7.x/pypy/tool/pytest/test/test_new_count.py
==============================================================================
--- pypy/release/0.7.x/pypy/tool/pytest/test/test_new_count.py	(original)
+++ pypy/release/0.7.x/pypy/tool/pytest/test/test_new_count.py	Sun Aug 28 12:59:09 2005
@@ -2,10 +2,12 @@
 import py
 #from pypy.tool.pytest.confpath import testresultdir
 from pypy.tool.pytest.result import ResultFromMime
-testpath = py.path.local( __file__).parts()[-2]
-testpath=testpath.join( 'data')
+testpath = py.magic.autopath().dirpath('data')
 
 class TestResultCache:
+    def setup_class(self):
+        if py.std.sys.version_info >= (2,4): 
+            py.test.skip("does not work on python 2.4 and greater currently")
 
     def test_timeout(self):
         test = ResultFromMime(testpath.join('test___all__.txt'))



More information about the Pypy-commit mailing list