File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change @@ -159,11 +159,11 @@ def get_z(x):
159
159
class TestWorkflows (unittest .TestCase ):
160
160
def setUp (self ):
161
161
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
167
167
168
168
def test_basic (self ):
169
169
self .lp .reset (password = None , require_password = False )
@@ -285,4 +285,4 @@ def suite():
285
285
286
286
287
287
if __name__ == "__main__" :
288
- unittest .main ()
288
+ unittest .main ()
You can’t perform that action at this time.
0 commit comments