We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2cf864 commit 31cfa76Copy full SHA for 31cfa76
src/uharfbuzz/_harfbuzz.pyx
@@ -46,7 +46,7 @@ def deprecated(replacement=None):
46
if replacement:
47
message += f", use {replacement} instead"
48
if message not in WARNED:
49
- warnings.warn(message, DeprecationWarning, stacklevel=2)
+ warnings.warn(message, DeprecationWarning)
50
WARNED.add(message)
51
return func(*args, **kwargs)
52
tests/test_uharfbuzz.py
@@ -1811,3 +1811,8 @@ def test_subset(blankfont):
1811
assert len(reverse) == 5
1812
cmap = plan.unicode_to_old_glyph_mapping
1813
assert cmap[ord("b")] == 2
1814
+
1815
1816
+def test_deprecated():
1817
+ with pytest.deprecated_call():
1818
+ hb.ot_color_glyph_get_layers(hb.Face(), 0)
0 commit comments