We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f716148 commit fe1f71eCopy full SHA for fe1f71e
tests/test_dom_tag.py
@@ -6,9 +6,9 @@
6
7
from dominate.tags import *
8
9
-from dominate import dom_tag as sut
10
11
def test___get_thread_context(monkeypatch):
+ from dominate import dom_tag as sut
12
greenlet = mock.Mock()
13
greenlet.getcurrent.return_value = 100
14
monkeypatch.setattr(sut, 'greenlet', greenlet)
@@ -17,10 +17,7 @@ def test___get_thread_context(monkeypatch):
17
threading.current_thread.return_value = 200
18
monkeypatch.setattr(sut, 'threading', threading)
19
20
- assert sut._get_thread_context() in [
21
- -6805948436281256182, # Python >= 3.9
22
- 3713141171098444831, # Python < 3.9
23
- ]
+ assert sut._get_thread_context() is not None
24
25
def test_add_raw_string():
26
container = div()
0 commit comments