Skip to content

Commit 26a63ed

Browse files
committedMar 20, 2018
Re-added matplotlib bc failed tests + closed file
1 parent 84c164b commit 26a63ed

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed
 

‎.eggs/README.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.
2+
3+
This directory caches those eggs to prevent repeated downloads.
4+
5+
However, it is safe to delete this directory.
6+

‎rocketsled/tests/tests.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ def get_z(x):
159159
class TestWorkflows(unittest.TestCase):
160160
def setUp(self):
161161
lp_filedir = os.path.dirname(os.path.realpath(__file__))
162-
lp_file = open(lp_filedir + '/tests_launchpad.yaml', 'r')
163-
yaml = YAML()
164-
lp_dict = dict(yaml.load(lp_file))
165-
self.lp = LaunchPad.from_dict(lp_dict)
166-
self.db = self.lp.db
162+
with open(lp_filedir + '/tests_launchpad.yaml', 'r') as lp_file:
163+
yaml = YAML()
164+
lp_dict = dict(yaml.load(lp_file))
165+
self.lp = LaunchPad.from_dict(lp_dict)
166+
self.db = self.lp.db
167167

168168
def test_basic(self):
169169
self.lp.reset(password=None, require_password=False)
@@ -285,4 +285,4 @@ def suite():
285285

286286

287287
if __name__ == "__main__":
288-
unittest.main()
288+
unittest.main()

0 commit comments

Comments
 (0)