bh: thuban/test test_load.py,1.40,1.41
cvs@intevation.de
cvs at intevation.de
Mon Dec 13 18:51:13 CET 2004
Author: bh
Update of /thubanrepository/thuban/test
In directory doto:/tmp/cvs-serv13016/test
Modified Files:
test_load.py
Log Message:
* test/test_load.py (TestAltPath.test_01_single_path_error_fix)
(TestAltPath.test_02_path_error_fix_from_list)
(TestAltPath.test_05_path_error_fix_from_list_changed)
(TestAltPath.test_06_path_error_fix_from_list_fails): self.session
is destroyed in tearDown, so there's no need to do it in a test
case.
* Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
debug print
Index: test_load.py
===================================================================
RCS file: /thubanrepository/thuban/test/test_load.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- test_load.py 13 Dec 2004 11:52:34 -0000 1.40
+++ test_load.py 13 Dec 2004 17:51:11 -0000 1.41
@@ -1036,8 +1036,6 @@
"check": [(None, None)]})
self.session = load_session(self.filename(),
shapefile_callback =s_cb.s_cb)
- self.session.Destroy()
- self.session = None
def test_02_path_error_fix_from_list(self):
"""Test single file path error fix."""
@@ -1048,8 +1046,6 @@
})
self.session = load_session(self.filename(),
shapefile_callback =s_cb.s_cb)
- self.session.Destroy()
- self.session = None
def test_03_single_path_error_cancelled(self):
"""Test alternative path cancelled."""
@@ -1076,8 +1072,6 @@
})
self.session = load_session(self.filename(),
shapefile_callback =s_cb.s_cb)
- self.session.Destroy()
- self.session = None
def test_06_path_error_fix_from_list_fails(self):
"""Test alternative path recovery from list."""
@@ -1091,8 +1085,6 @@
self.assertRaises(IndexError,
s_cb.s_cb, None, "search")
- self.session.Destroy()
- self.session = None
if __name__ == "__main__":
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)