Exemple #1
0
 def test_mem_opers(self):
     with warnings.catch_warnings(record=True) as w:
         warnings.simplefilter("always")
         try:
             declarations.scopedef_t().mem_opers()
         except RuntimeError:
             pass
         self._check(w)
 def test_mem_opers(self):
     with warnings.catch_warnings(record=True) as w:
         warnings.simplefilter("always")
         try:
             declarations.scopedef_t().mem_opers()
         except RuntimeError:
             pass
         self._check(w)
Exemple #3
0
    def test_scopedef_deprecations(self):
        """
        Test the deprecated attributes in scopedef

        """
        scopedef = declarations.scopedef_t()
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always")
            _ = scopedef.declaration_not_found_t
            self._check(w)

        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always")
            _ = scopedef.multiple_declarations_found_t
            self._check(w)
    def test_scopedef_deprecations(self):
        """
        Test the deprecated attributes in scopedef

        """
        scopedef = declarations.scopedef_t()
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always")
            _ = scopedef.declaration_not_found_t
            self._check(w)

        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always")
            _ = scopedef.multiple_declarations_found_t
            self._check(w)