Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close open file descriptors (psutil check fixed from DM-24907) #81

Merged
merged 3 commits into from
May 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions tests/test_loadDiaCatalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def setUp(self):
afwImageUtils.resetFilters()
afwImageUtils.defineFilter('g', lambdaEff=487, alias="g.MP9401")

self.tmp_file, self.db_file = tempfile.mkstemp(
self.db_file_fd, self.db_file = tempfile.mkstemp(
dir=os.path.dirname(__file__))

self.apdbConfig = ApdbConfig()
Expand Down Expand Up @@ -264,9 +264,8 @@ def setUp(self):
self.dateTime)

def tearDown(self):
del self.tmp_file
os.close(self.db_file_fd)
os.remove(self.db_file)
del self.db_file

def testRun(self):
"""Test the full run method for the loader.
Expand Down