As per https://docs.python.org/3.11/reference/lexical_analysis.html#encoding-declarations, the default encoding of Python files is UTF-8. In fact, it's been the default encoding since Python 3.0 (released in 2008).
22 lines
533 B
Python
22 lines
533 B
Python
import unittest
|
|
import sys
|
|
from .utils import TASKW_SKIP
|
|
|
|
|
|
class BaseTestCase(unittest.TestCase):
|
|
def tap(self, out):
|
|
sys.stderr.write("--- tap output start ---\n")
|
|
for line in out.splitlines():
|
|
sys.stderr.write(line + '\n')
|
|
sys.stderr.write("--- tap output end ---\n")
|
|
|
|
|
|
@unittest.skipIf(TASKW_SKIP, "TASKW_SKIP set, skipping task tests.")
|
|
class TestCase(BaseTestCase):
|
|
"""Automatically skips tests if TASKW_SKIP is present in the environment
|
|
"""
|
|
pass
|
|
|
|
|
|
# vim: ai sts=4 et sw=4
|