File: test_compat.py

package info (click to toggle)
domdf-python-tools 3.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: python: 10,838; makefile: 7
file content (9 lines) | stat: -rw-r--r-- 162 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# this package
from domdf_python_tools.compat import nullcontext


def test_nullcontext():
	with nullcontext("foo") as f:
		assert f == "foo"

	assert f == "foo"