Exemplo n.º 1
0
 def test_lenient(self):
     options, sources = parse_args(['foo.pyx', '--lenient'])
     self.assertEqual(sources, ['foo.pyx'])
     self.assertEqual(Options.error_on_unknown_names, False)
     self.assertEqual(Options.error_on_uninitialized, False)
     self.check_default_global_options(
         ['error_on_unknown_names', 'error_on_uninitialized'])
Exemplo n.º 2
0
 def test_build_set_for_inplace(self):
     options, args = parse_args(['foo.pyx', '-i'])
     self.assertEqual(options.build, True)
Exemplo n.º 3
0
 def test_no_docstrings(self):
     options, sources = parse_args(['foo.pyx', '--no-docstrings'])
     self.assertEqual(sources, ['foo.pyx'])
     self.assertEqual(Options.docstrings, False)
     self.check_default_global_options(['docstrings'])
Exemplo n.º 4
0
 def test_annotate_fullc(self):
     options, sources = parse_args(['foo.pyx', '--annotate-fullc'])
     self.assertEqual(sources, ['foo.pyx'])
     self.assertEqual(Options.annotate, 'fullc')
     self.check_default_global_options(['annotate'])
Exemplo n.º 5
0
 def test_build_set_for_inplace(self):
     options, args = parse_args(['foo.pyx', '-i'])
     self.assertEqual(options.build, True)
     self.check_default_global_options()