[py-svn] r57446 - py/branch/guido-svnwc-xml-status/py/path/svn/testing

guido at codespeak.net guido at codespeak.net
Mon Aug 18 21:09:02 CEST 2008


Author: guido
Date: Mon Aug 18 21:09:01 2008
New Revision: 57446

Modified:
   py/branch/guido-svnwc-xml-status/py/path/svn/testing/test_wccommand.py
Log:
Made that a couple of slow tests get skipped - use --runslowtests to run them.


Modified: py/branch/guido-svnwc-xml-status/py/path/svn/testing/test_wccommand.py
==============================================================================
--- py/branch/guido-svnwc-xml-status/py/path/svn/testing/test_wccommand.py	(original)
+++ py/branch/guido-svnwc-xml-status/py/path/svn/testing/test_wccommand.py	Mon Aug 18 21:09:01 2008
@@ -4,6 +4,7 @@
 from py.__.path.svn.wccommand import InfoSvnWCCommand
 from py.__.path.svn.wccommand import parse_wcinfotime
 from py.__.path.svn import svncommon
+from py.__.conftest import option
 
 if py.path.local.sysfind('svn') is None:
     py.test.skip("cannot test py.path.svn, 'svn' binary not found")
@@ -157,6 +158,9 @@
             self.root.revert(rec=1)
 
     def test_status_conflict(self):
+        if not option.runslowtests:
+            py.test.skip('skipping slow unit tests - use --runslowtests '
+                         'to override')
         wc = self.root
         wccopy = py.path.svnwc(
             py.test.ensuretemp('test_status_conflict_wccopy'))
@@ -174,6 +178,9 @@
         assert [x.basename for x in s.conflict] == ['conflictsamplefile']
 
     def test_status_external(self):
+        if not option.runslowtests:
+            py.test.skip('skipping slow unit tests - use --runslowtests '
+                         'to override')
         otherrepo, otherwc = getrepowc('externalrepo', 'externalwc')
         d = self.root.ensure('sampledir', dir=1)
         try:



More information about the pytest-commit mailing list