Mercurial > hgrepos > Python > apps > py-cutils
view tests/_test_setup.py @ 391:ef3c56c4f2c7 build-2.7
Begin a new "build-2.7" branch to support build using Python2.7 or older Python3 versions
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 16 Feb 2026 13:34:51 +0100 |
| parents | 7f797d71bd5e |
| children |
line wrap: on
line source
# -*- coding: utf-8 -*- # :- # SPDX-FileCopyrightText: © 2022 Franz Glasner # SPDX-License-Identifier: BSD-3-Clause # :- r"""Unit tests """ import os import sys TESTDIR = os.path.normpath(os.path.abspath(os.path.dirname(__file__))) DATADIR = os.path.join(TESTDIR, "data") TMPDIR = os.path.join(DATADIR, "_tmp") sys.path.insert(0, os.path.join(TESTDIR, "..")) del os del sys
