Mercurial > hgrepos > Python > apps > py-cutils
view tests/_test_setup.py @ 276:f7850ff5cbe0
treesum: when walking: if filenames contain CR and/or LF pretend that this names are not properly encoded.
So the alt_xxx() path is to be used with a proper additional backslash encoding.
Also the directory is marked tainted.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 21 Feb 2025 16:33:56 +0100 |
| parents | c02a57df2a29 |
| children | 7f797d71bd5e |
line wrap: on
line source
# -*- coding: utf-8 -*- 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
