[Zodb-checkins] CVS: StandaloneZODB/ZEO/tests - testZEO.py:1.17

Jeremy Hylton jeremy@zope.com
Mon, 21 Jan 2002 15:33:51 -0500


Update of /cvs-repository/StandaloneZODB/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv935/tests

Modified Files:
	testZEO.py 
Log Message:
Call super setUp() right away, because it sets _storage to None.
Let super tearDown() close the storage.

Tracking changes to ZODB/tests/StorageTestBase.


=== StandaloneZODB/ZEO/tests/testZEO.py 1.16 => 1.17 ===
         getStorage() method.
         """
+        self.__super_setUp()
         self.running = 1
         client, exit, pid = forker.start_zeo(self.getStorage())
         self._pid = pid
         self._server = exit
         self._storage = PackWaitWrapper(client)
         client.registerDB(DummyDB(), None)
-        self.__super_setUp()
 
     def tearDown(self):
         """Try to cause the tests to halt"""
         self.running = 0
-        self._storage.close()
         self._server.close()
         os.waitpid(self._pid, 0)
         self.delStorage()