aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py')
-rwxr-xr-xpython/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py b/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py
index be8ae7be..e2c9db03 100755
--- a/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py
+++ b/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/test_util.py
@@ -567,9 +567,9 @@ def GoldenFile(filename):
# Search up the directory tree looking for the C++ protobuf source code.
path = '.'
while os.path.exists(path):
- if os.path.exists(os.path.join(path, 'src/google/protobuf')):
+ if os.path.exists(os.path.join(path, 'tests/google/protobuf/internal')):
# Found it. Load the golden file from the testdata directory.
- full_path = os.path.join(path, 'src/google/protobuf/testdata', filename)
+ full_path = os.path.join(path, 'tests/google/protobuf/internal', filename)
return open(full_path, 'rb')
path = os.path.join(path, '..')