Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison tests/_tsetup.py @ 17:251898f2f0c7
The test data should live in "tests/snippets" for Pygments; rename "data" to "snippets"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 20 Apr 2026 13:34:20 +0200 |
| parents | b92f660f2461 |
| children | 859ab8abce0a |
comparison
equal
deleted
inserted
replaced
| 16:b92f660f2461 | 17:251898f2f0c7 |
|---|---|
| 17 0, | 17 0, |
| 18 os.path.abspath( | 18 os.path.abspath( |
| 19 os.path.normpath(os.path.join(os.path.dirname(__file__), "..")))) | 19 os.path.normpath(os.path.join(os.path.dirname(__file__), "..")))) |
| 20 | 20 |
| 21 | 21 |
| 22 TESTDATADIR = os.path.join( | 22 TESTSNIPPETSDIR = os.path.join( |
| 23 os.path.abspath(os.path.dirname(__file__)), | 23 os.path.abspath(os.path.dirname(__file__)), |
| 24 "data") | 24 "snippets") |
| 25 | 25 |
| 26 | 26 |
| 27 # Setup logging for the unittests: use a known fixed format w/o time | 27 # Setup logging for the unittests: use a known fixed format w/o time |
| 28 logging.captureWarnings(True) | 28 logging.captureWarnings(True) |
| 29 logging.basicConfig( | 29 logging.basicConfig( |
