Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/crcmod/test.py @ 180:d038f0a9ba49
Vendored crcmod2 into sub-package "cutils.crcmod" as pure-Python implementation of additional "digests": CRC sums.
Running python -m cutils.crcmod.test works successfully.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 13 Jan 2025 04:09:35 +0100 |
| parents | |
| children | 5c5c0c5a7402 |
comparison
equal
deleted
inserted
replaced
| 179:53614a724bf0 | 180:d038f0a9ba49 |
|---|---|
| 1 # -*- coding: utf-8; -*- | |
| 2 from __future__ import absolute_import | |
| 3 | |
| 4 import sys | |
| 5 | |
| 6 if sys.version_info[0] < 3: | |
| 7 from .python2.test import * | |
| 8 else: | |
| 9 from .python3.test import * | |
| 10 | |
| 11 | |
| 12 del sys | |
| 13 | |
| 14 | |
| 15 if __name__ == '__main__': | |
| 16 runtests() |
