diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2022-07-20 20:33:20 +0200 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2022-07-20 20:33:20 +0200 |
| commit | 64b1cb116a223f48a08edd97bbd7c63188cb0b0b (patch) | |
| tree | acad7dc7dcd65a6693e3ed34546fbc25750399d3 /Cython/Compiler/Tests/TestParseTreeTransforms.py | |
| parent | 87329f1f9747a5a7e483cf4827d40457f6354c7c (diff) | |
| parent | 3cb3c2fd3a1359c46c81675610f7458ac6dcf223 (diff) | |
| download | cython-64b1cb116a223f48a08edd97bbd7c63188cb0b0b.tar.gz | |
Merge branch '0.29.x'
Diffstat (limited to 'Cython/Compiler/Tests/TestParseTreeTransforms.py')
| -rw-r--r-- | Cython/Compiler/Tests/TestParseTreeTransforms.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Cython/Compiler/Tests/TestParseTreeTransforms.py b/Cython/Compiler/Tests/TestParseTreeTransforms.py index e6889f8f2..6e29263e5 100644 --- a/Cython/Compiler/Tests/TestParseTreeTransforms.py +++ b/Cython/Compiler/Tests/TestParseTreeTransforms.py @@ -1,7 +1,9 @@ -import os +import os.path +import unittest from Cython.TestUtils import TransformTest from Cython.Compiler.ParseTreeTransforms import * +from Cython.Compiler.ParseTreeTransforms import _calculate_pickle_checksums from Cython.Compiler.Nodes import * from Cython.Compiler import Main, Symtab, Options @@ -276,6 +278,11 @@ class TestDebugTransform(DebuggerTestCase): raise +class TestAnalyseDeclarationsTransform(unittest.TestCase): + def test_calculate_pickle_checksums(self): + checksums = _calculate_pickle_checksums(['member1', 'member2', 'member3']) + assert 2 <= len(checksums) <= 3, checksums # expecting ['0xc0af380' (MD5), '0x0c75bd4', '0xa7a7b94'] + if __name__ == "__main__": import unittest |
