import zipfile from urllib.parse import urlunsplit
import mozhttpd import mozunit from conftest import fspath from six import BytesIO
def test_symbols_path_not_present(check_for_crashes, minidump_files): """Test that no symbols path let mozcrash try to find the symbols.""" assert 1 == check_for_crashes(symbols_path=None)
def test_symbols_path_unicode(check_for_crashes, minidump_files, tmpdir, capsys): """Test that check_for_crashes can handle unicode in dump_directory."""
symbols_path = tmpdir.mkdir("🍪")
out, _ = capsys.readouterr() assert fspath(symbols_path) in out
def test_symbols_path_url(check_for_crashes, minidump_files): """Test that passing a URL as symbols_path correctly fetches the URL."""
data = {"retrieved": False}
def test_symbols_retry(check_for_crashes, minidump_files): """Test that passing a URL as symbols_path succeeds on retry after temporary HTTP failure."""
data = {"retrieved": False}
get_symbols_calls = 0
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.