From fe1f71e3a48b8f8d3d2747ae5e6eb5c97c13f29f Mon Sep 17 00:00:00 2001 From: Tom Flanagan Date: Mon, 5 Jun 2023 22:20:33 -0700 Subject: [PATCH] Remove brittle test (#178) Fixes #177 Fixes #176 --- tests/test_dom_tag.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_dom_tag.py b/tests/test_dom_tag.py index 43ffecb..00dcc9f 100644 --- a/tests/test_dom_tag.py +++ b/tests/test_dom_tag.py @@ -6,9 +6,9 @@ from dominate.tags import * -from dominate import dom_tag as sut def test___get_thread_context(monkeypatch): + from dominate import dom_tag as sut greenlet = mock.Mock() greenlet.getcurrent.return_value = 100 monkeypatch.setattr(sut, 'greenlet', greenlet) @@ -17,10 +17,7 @@ def test___get_thread_context(monkeypatch): threading.current_thread.return_value = 200 monkeypatch.setattr(sut, 'threading', threading) - assert sut._get_thread_context() in [ - -6805948436281256182, # Python >= 3.9 - 3713141171098444831, # Python < 3.9 - ] + assert sut._get_thread_context() is not None def test_add_raw_string(): container = div()