Mercurial > hgrepos > Python > apps > py-cutils
annotate tests/test_crcmod.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 | d50e89d92fa3 |
| children | 7f797d71bd5e |
| rev | line source |
|---|---|
|
181
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
1 # -*- coding: utf-8 -*- |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 r"""Unit tests for the vendored crcmod2 package. |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
3 |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
4 """ |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
6 from __future__ import absolute_import, print_function |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
7 |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
8 import unittest |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
9 |
| 256 | 10 import _test_setup # noqa: F401 imported but unused |
|
181
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 import cutils.crcmod.test |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
13 |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 if __name__ == "__main__": |
|
c4f737ec368c
Add a unittest for the vendored crcmod2 (in cutils.crcmod)
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
16 unittest.main(module=cutils.crcmod.test) |
