Bug 919391 - (fix) Use os.path.join instead a=testonly
☠☠ backed out by fe960e54cc30 ☠ ☠
authorValentin Gosu <valentin.gosu@gmail.com>
Wed, 15 Feb 2017 20:03:41 +0100
changeset 343119 c3a4bae5fc8db328f9f8559a65b28c235743bc10
parent 343118 e776663ecbb4df20c2ed612cbaf5d5e2808ab6bb
child 343120 62adae0f5df21dd911dd6d817af362037b18b08d
push id31369
push userkwierso@gmail.com
push dateThu, 16 Feb 2017 00:18:40 +0000
treeherdermozilla-central@e9b926463f9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs919391
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 919391 - (fix) Use os.path.join instead a=testonly MozReview-Commit-ID: 4YMGhQtzf3c
testing/web-platform/tests/resource-timing/resources/gzip_xml.py
--- a/testing/web-platform/tests/resource-timing/resources/gzip_xml.py
+++ b/testing/web-platform/tests/resource-timing/resources/gzip_xml.py
@@ -1,15 +1,16 @@
 import gzip as gzip_module
 from cStringIO import StringIO
 import os
 
 def main(request, response):
     dir_path = os.path.dirname(os.path.realpath(__file__))
-    f = open(dir_path+'/resource_timing_test0.xml', 'r')
+    file_path = os.path.join(dir_path, 'resource_timing_test0.xml')
+    f = open(file_path, 'r')
     output = f.read()
 
     out = StringIO()
     with gzip_module.GzipFile(fileobj=out, mode="w") as f:
       f.write(output)
     output = out.getvalue()
 
     headers = [("Content-type", "text/plain"),