Skip to content

Commit

Permalink
Remove brittle test (#178)
Browse files Browse the repository at this point in the history
Fixes #177 
Fixes #176
  • Loading branch information
Knio committed Jun 6, 2023
1 parent f716148 commit fe1f71e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_dom_tag.py
Expand Up @@ -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)
Expand All @@ -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()
Expand Down

0 comments on commit fe1f71e

Please sign in to comment.