Commit 0235f998 authored by Jeffrey Shell's avatar Jeffrey Shell

Collector issue #2456 (changes a call of os.system('rm...') to use

glob() and os.remove().
parent 7f6faf06
...@@ -97,6 +97,9 @@ from BTrees.IIBTree import IIBTree, IIBucket, IISet, IITreeSet ...@@ -97,6 +97,9 @@ from BTrees.IIBTree import IIBTree, IIBucket, IISet, IITreeSet
from BTrees.OIBTree import OIBTree, OIBucket, OISet, OITreeSet from BTrees.OIBTree import OIBTree, OIBucket, OISet, OITreeSet
from unittest import TestCase, TestSuite, JUnitTextTestRunner, VerboseTextTestRunner, makeSuite from unittest import TestCase, TestSuite, JUnitTextTestRunner, VerboseTextTestRunner, makeSuite
from glob import glob
import os
TextTestRunner = VerboseTextTestRunner TextTestRunner = VerboseTextTestRunner
class Base: class Base:
...@@ -119,7 +122,8 @@ class Base: ...@@ -119,7 +122,8 @@ class Base:
root = None root = None
def _delDB(self): def _delDB(self):
os.system('rm fs_tmp__*') for file in glob('fs_tmp__*'):
os.remove(file)
def testLoadAndStore(self): def testLoadAndStore(self):
for i in 0, 10, 1000: for i in 0, 10, 1000:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment