diff options
Diffstat (limited to 'Cython/Compiler/Tests/TestBuffer.py')
-rw-r--r-- | Cython/Compiler/Tests/TestBuffer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Compiler/Tests/TestBuffer.py b/Cython/Compiler/Tests/TestBuffer.py index 1f69d9652..2f653d0ff 100644 --- a/Cython/Compiler/Tests/TestBuffer.py +++ b/Cython/Compiler/Tests/TestBuffer.py @@ -55,7 +55,7 @@ class TestBufferOptions(CythonTest): root = self.fragment(s, pipeline=[NormalizeTree(self), PostParse(self)]).root if not expect_error: vardef = root.stats[0].body.stats[0] - assert isinstance(vardef, CVarDefNode) # use normal assert as this is to validate the test code + assert isinstance(vardef, CVarDefNode) # use normal assert as this is to validate the test code buftype = vardef.base_type self.assertTrue(isinstance(buftype, TemplatedTypeNode)) self.assertTrue(isinstance(buftype.base_type_node, CSimpleBaseTypeNode)) @@ -99,7 +99,7 @@ class TestBufferOptions(CythonTest): # add exotic and impossible combinations as they come along... + if __name__ == '__main__': import unittest unittest.main() - |