File: test_compat.py

package info (click to toggle)
domdf-python-tools 3.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,780 kB
  • sloc: python: 10,838; makefile: 7
file content (9 lines) | stat: -rw-r--r-- 162 bytes parent folder | download | duplicates (2)
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"