]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Mark test_ctrl_c_handler as timing sensitive
authorSandro <sandro.jaeckel@gmail.com>
Tue, 13 Jun 2023 09:34:55 +0000 (11:34 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 13 Jun 2023 15:56:51 +0000 (17:56 +0200)
commit762bb2e4c840886acca12a3676296e10a7114fa2
tree2f3fde490c138385adac251f3ebfa8a39ee7f484
parentf0a573d2df552399fb44a648ffe689a8145e8b36
Mark test_ctrl_c_handler as timing sensitive

psycopg> =================================== FAILURES ===================================
psycopg> _____________________________ test_ctrl_c_handler ______________________________
psycopg>         t0 = time.time()
psycopg>         proc = sp.Popen([sys.executable, "-s", "-c", script], creationflags=creationflags)
psycopg>         proc.communicate()
psycopg>         t = time.time() - t0
psycopg>         assert proc.returncode == 0
psycopg> >       assert 1 < t < 2
psycopg> E       assert 3.7456982135772705 < 2
psycopg>
psycopg> tests/test_concurrency.py:293: AssertionError
tests/test_concurrency.py
tests/test_concurrency_async.py