Skip to content

Commit 3a0f0db

Browse files
committed
Asserts for debugging 3.14/win failures.
1 parent 415f44c commit 3a0f0db

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/relstorage/tests/test_zodbconvert.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
# FOR A PARTICULAR PURPOSE.
1212
#
1313
##############################################################################
14-
from __future__ import absolute_import
15-
from __future__ import print_function
16-
1714
import functools
1815
import gc
1916
import os
@@ -384,6 +381,7 @@ def _write_cfg(self, cfg):
384381
fd, cfgfile = tempfile.mkstemp('.conf', 'zodbconvert-')
385382
os.write(fd, cfg.encode('ascii'))
386383
os.close(fd)
384+
self.assertTrue(os.path.exists(cfgfile), cfgfile)
387385
return cfgfile
388386

389387
def tearDown(self):
@@ -412,9 +410,13 @@ def _load_zconfig(self):
412410
from relstorage.zodbconvert import schema_xml
413411
from relstorage.zodbconvert import StringIO
414412
import ZConfig
413+
__traceback_info__ = self.cfgfile
415414

416415
schema = ZConfig.loadSchemaFile(StringIO(schema_xml))
416+
417+
self.assertTrue(os.path.exists(self.cfgfile), self.cfgfile)
417418
conf, _ = ZConfig.loadConfig(schema, self.cfgfile)
419+
418420
return conf
419421

420422
def _create_src_storage(self):
@@ -433,6 +435,7 @@ def test_storage_has_data(self):
433435
db.close()
434436
self.assertTrue(storage_has_data(src))
435437

438+
436439
class ZlibWrappedFSZODBConvertTests(FSZODBConvertTests):
437440

438441
def _cfg_header(self):

0 commit comments

Comments
 (0)