changeset 621:65922348740b pytest2

code cleanup done in wikiutil.py and util/test_filesys.
author pkumar <contactprashantat@gmail.com>
date Wed, 06 Jul 2011 17:01:52 +0530
parents 5b68305a8211
children f734d9a2bb57
files MoinMoin/util/_tests/test_filesys.py MoinMoin/wikiutil.py
diffstat 2 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/_tests/test_filesys.py	Wed Jul 06 16:52:47 2011 +0530
+++ b/MoinMoin/util/_tests/test_filesys.py	Wed Jul 06 17:01:52 2011 +0530
@@ -163,7 +163,6 @@
 
     def test_dir_exist(self):
         """ raise Error if dir already exist """
-        self.makefile(self.src1, 'src1')
         self.test_dest_dir = tempfile.mkdtemp('', 'temp_dir')
         with pytest.raises(OSError):
             filesys.copytree(self.test_dir, self.test_dest_dir)
--- a/MoinMoin/wikiutil.py	Wed Jul 06 16:52:47 2011 +0530
+++ b/MoinMoin/wikiutil.py	Wed Jul 06 17:01:52 2011 +0530
@@ -252,8 +252,6 @@
     """
     if ':' not in arg:
         return False
-    #import pytest
-    #pytest.set_trace()
     for schema in schemas:
         if arg.startswith(schema + ':'):
             return True