Mercurial > hgrepos > Python > apps > py-cutils
view tests/_test_setup.py @ 275:c72f5b2dbc6f
treesum: Simplify the path computations and make the visible output more consistent.
Current format of digest lines:
- No `=' if there was a severe error so that digest and/or size could not
be computed.
- Empty fields for digest and/or size of they were not computed on purpose:
* for symbolic links
* for special files
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 20 Feb 2025 15:30:51 +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
