Exemplo n.º 1
0
    def test_zope_interface(self):
        if not common.canImport('zope.interface'):
            self.skip = True # FIXME: interpret this
            return

        # FIXME: add _interface_coptimizations to blacklist
        self.check('test_zope_interface', '-q')
    def testDispatch(self):
        if not common.canImport("dis"):
            # FIXME: no skip support
            return

        res = []
        import dis

        for key, value in dis.opmap.items():
            if not CodeChecks.DISPATCH[value]:
                res.append("opcode %d: %s not in CodeChecks.DISPATCH" % (value, key))
        self.failIf(res, "\n".join(res))
Exemplo n.º 3
0
    def testDispatch(self):
        if not common.canImport('dis'):
            # FIXME: no skip support
            return

        res = []
        import dis
        for key, value in dis.opmap.items():
            if not CodeChecks.DISPATCH[value]:
                res.append("opcode %d: %s not in CodeChecks.DISPATCH" %
                           (value, key))
        self.failIf(res, "\n".join(res))
Exemplo n.º 4
0
    def test_zope_interface(self):
        if not common.canImport('zope.interface'):
            self.skip = True  # FIXME: interpret this
            return

        self.check('test_zope_interface', '-q')
Exemplo n.º 5
0
    def test_zope_interface(self):
        if not common.canImport("zope.interface"):
            self.skip = True  # FIXME: interpret this

        self.check("test_zope_interface", "-q")
    def test_zope_interface(self):
        if not common.canImport('zope.interface'):
            self.skip = True # FIXME: interpret this
            return

        self.check('test_zope_interface', '-q')