import pytest
import threading
from .util import run_test, destroy_window


def get_current_url():
    import webview

    def _get_current_url(webview):
        webview.get_current_url()

    t = threading.Thread(target=_get_current_url, args=(webview,))
    t.start()
    destroy_window(webview)

    webview.create_window('Get current url test', 'https://www.example.org')


def test_get_current_url():
    run_test(get_current_url)

@@ -289,16 +289,19 @@
 (webview
+, 5
 )%0A%0A    w

Increase destroy_window delay of test_get_current_url