diff options
author | David Kremer <courrier@david-kremer.fr> | 2018-08-15 18:40:27 +0200 |
---|---|---|
committer | David Kremer <courrier@david-kremer.fr> | 2018-08-15 19:47:55 +0200 |
commit | e46e064df3e00e5807001a785730b49997c94169 (patch) | |
tree | f5d3b983c81226b5a09170c260a3df3b68e64879 /pathod | |
parent | a945b0cf1111d81e1adc2aa0239dee9389ca5711 (diff) | |
download | mitmproxy-e46e064df3e00e5807001a785730b49997c94169.tar.gz mitmproxy-e46e064df3e00e5807001a785730b49997c94169.tar.bz2 mitmproxy-e46e064df3e00e5807001a785730b49997c94169.zip |
[examples/xss_scanner] replace relative import
test_xss_scanner.py was utterly failing because of a trouble (bug?)
with the `monkeypatch` fixture failing to replace `gethostbyname`
with the correct mock function.
Indeed, when stepping through the code, the `gethostbyname` presumably
mocked was reported as a builtin python function. The problem could
then come from the fact that it is hard to monkeypatch builtin function
in python.
Using absolute imports seems to resolve the problem.
Diffstat (limited to 'pathod')
0 files changed, 0 insertions, 0 deletions