blob: a96cfa5d110914a4bd25820d275f17744f41ff41 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- contrib/python/responses/py2/responses/test_responses.py (index)
+++ contrib/python/responses/py2/responses/test_responses.py (working tree)
@@ -1022,7 +1022,8 @@ def test_response_filebody():
""" Adds the possibility to use actual (binary) files as responses """
def run():
- current_file = os.path.abspath(__file__)
+ import yatest.common as yc
+ current_file = yc.source_path("contrib/python/responses/py2/responses/test_responses.py")
with responses.RequestsMock() as m:
with open(current_file, "r") as out:
m.add(responses.GET, "http://example.com", body=out.read(), stream=True)
|