Bug 1077381 - Follow-up: Try to fix Windows bustage. r=me
authorNick Alexander <nalexander@mozilla.com>
Mon, 06 Oct 2014 12:38:12 -0700
changeset 209063 e17d2378aa66400f93ac37325c35cfd23d941636
parent 209062 1c61b9e3686971e92f4ca64d7b3ba6ae325cba8b
child 209064 8f1758ce53f05216f35ab9720d4db3782623225e
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersme
bugs1077381
milestone35.0a1
Bug 1077381 - Follow-up: Try to fix Windows bustage. r=me a=bustage on a CLOSED TREE
python/mozbuild/mozbuild/test/action/test_generate_browsersearch.py
--- a/python/mozbuild/mozbuild/test/action/test_generate_browsersearch.py
+++ b/python/mozbuild/mozbuild/test/action/test_generate_browsersearch.py
@@ -27,17 +27,17 @@ test_data_path = mozpath.join(test_data_
 
 class TestGenerateBrowserSearch(unittest.TestCase):
     """
     Unit tests for generate_browsersearch.py.
     """
 
     def _test_one(self, name):
         with TemporaryDirectory() as tmpdir:
-            with NamedTemporaryFile(mode='rw') as temp:
+            with NamedTemporaryFile(mode='r+') as temp:
                 srcdir = os.path.join(test_data_path, name)
 
                 generate_browsersearch.main([
                     '--verbose',
                     '--srcdir', srcdir,
                     temp.name])
                 return json.load(temp)