Fix one ResourceWarning: unclosed file in test_req.py
@@ -64,7 +64,8 @@ class TestRequirementSet(object):
build_dir = os.path.join(self.tempdir, 'build', 'simple')
os.makedirs(build_dir)
- open(os.path.join(build_dir, "setup.py"), 'w')
+ with open(os.path.join(build_dir, "setup.py"), 'w'):
+ pass
reqset = RequirementSet()
req = InstallRequirement.from_line('simple')
req.is_direct = True
