sqlmap/tests
Piyush satyarthi cb5216564a
Close leaked sqlite3 connections (ResourceWarning on Python 3.13+) (#6181)
Python 3.13+ reports sqlite3 connections that are garbage collected
without being closed. The unit tests print a run of
"ResourceWarning: unclosed database" lines on Linux/CPython 3.14:

- SQLAlchemy.close() only returned its connection to the engine's
  pool, so the underlying DBAPI connection (e.g. sqlite3 for
  '-d sqlite://...') stayed open. Dispose the engine on close.
- vulnTest() used "with sqlite3.connect(...)", which commits but does
  not close the connection. Use contextlib.closing().
- test_multibit and test_sqlalchemy never closed what they opened.

Co-authored-by: PiyushSatyarthi <244159432+PiyushSatyarthi@users.noreply.github.com>
2026-11-12 09:46:10 +01:00
..
integration/audit Minor update 2026-10-19 18:37:58 +02:00
__init__.py
_testutils.py
test_agent.py Fixes #4708 2026-10-18 21:54:21 +02:00
test_api.py Minor cleaning after #6146 2026-10-17 13:06:38 +02:00
test_audit.py Adding cross-DBMS security configuration audit (--audit) 2026-10-19 18:34:39 +02:00
test_authrefresh.py Implements #4271 2026-10-19 11:46:27 +02:00
test_bigarray.py
test_boolean_jitter.py
test_brotli.py
test_brute.py
test_charset.py
test_checks.py
test_cloak.py
test_common.py Implements #6177 2026-11-06 15:31:35 +01:00
test_common_helpers.py Preserve non-default ports in Host headers (#6171) 2026-11-03 22:03:38 +01:00
test_comparison.py
test_comparison_json.py
test_compat.py
test_configfile.py Adding cross-DBMS security configuration audit (--audit) 2026-10-19 18:34:39 +02:00
test_convert.py
test_crawler.py
test_databases_enum.py Fixes #6151 2026-10-21 10:37:13 +02:00
test_datafiles.py
test_datatypes.py
test_dbms_enum.py
test_dbwire.py Adding support for Sybase into dbwire 2026-08-13 14:41:00 +02:00
test_decodepage.py
test_decorators.py
test_deps.py
test_dialect.py
test_dialectdbms.py
test_dicts.py
test_dns_engine.py Implements #4973 2026-10-18 22:14:12 +02:00
test_dns_server.py
test_dork_search.py Doing some cleaning for web search requests 2026-10-21 12:10:18 +02:00
test_dump_format.py Adding cross-DBMS security configuration audit (--audit) 2026-10-19 18:34:39 +02:00
test_dump_jsonl.py
test_encoding.py
test_entries.py
test_error_engine.py
test_esperanto.py
test_filesystem.py
test_fingerprint.py
test_generic_takeover.py Fixes CI/CD issues 2026-10-18 22:21:02 +02:00
test_graphql.py
test_grpcweb.py
test_gui_helpers.py
test_har.py Fixes #6168 2026-11-02 11:13:40 +01:00
test_hash.py
test_hash_crack.py
test_hashdb.py
test_heuristic_signatures.py Fixes #6105 2026-09-04 09:47:33 +02:00
test_hql.py
test_html_parser_forks.py
test_http2.py Implements #4271 2026-10-19 11:46:27 +02:00
test_httpshandler.py Fixes #6152 2026-10-21 13:51:35 +02:00
test_identifiers_output.py
test_inference_engine.py
test_jit_guard.py
test_jitter_stress.py Minor update 2026-08-11 23:37:53 +02:00
test_jwt.py
test_kbchars.py
test_kerberos.py Minor improvement of test cases 2026-07-28 22:42:55 +02:00
test_keyset_engine.py
test_ldap.py
test_library.py
test_misc.py
test_multibit.py Close leaked sqlite3 connections (ResourceWarning on Python 3.13+) (#6181) 2026-11-12 09:46:10 +01:00
test_nosql.py
test_odata.py
test_openapi.py Minor bug fix for --openapi 2026-07-28 14:39:44 +02:00
test_openapi_drift.py
test_option.py Fixes #6162 2026-10-27 13:29:36 +01:00
test_pagecontent.py
test_parse_modules.py
test_payload_marking.py
test_payloads_structure.py
test_profiling.py Fixes #6096 2026-08-11 13:40:57 +02:00
test_progress.py
test_property.py
test_purge.py
test_reflection.py
test_replication.py
test_report.py
test_request_basic.py
test_safe2bin.py
test_search_enum.py
test_serialize.py Fixes #6170 2026-11-03 22:04:29 +01:00
test_settings_regex.py
test_sgmllib.py
test_sparql.py
test_sqlalchemy.py Close leaked sqlite3 connections (ResourceWarning on Python 3.13+) (#6181) 2026-11-12 09:46:10 +01:00
test_sqllint.py
test_sqlparse.py
test_ssti.py Make test_ssti and test_xpath runnable standalone (#6136) 2026-10-05 23:54:39 +02:00
test_strings.py
test_tamper.py
test_target_parsing.py
test_targeturl.py
test_techniques.py
test_texthelpers.py
test_threads.py
test_timeless.py
test_union_engine.py Adding cross-DBMS security configuration audit (--audit) 2026-10-19 18:34:39 +02:00
test_urls.py
test_users_enum.py
test_utils.py
test_wafbypass.py
test_websocket.py Preserve custom Host headers for WebSocket requests (#6172) 2026-11-04 10:18:06 +01:00
test_websocket_response.py Keep WebSocket responses on normal closure (#6173) 2026-11-04 10:18:29 +01:00
test_wordlist.py
test_xpath.py
test_xslt.py
test_xxe.py