Ejemplo n.º 1
0
    def testOdict(self):
        import _ordereddict
        assert _GetSymbol() == _ordereddict.ordereddict

        with PushPopItem(sys.modules, '_ordereddict', None):
            assert _GetSymbol() == _OrderedDict
Ejemplo n.º 2
0
    def testOdict(self):
        import _ordereddict
        assert _GetSymbol() == _ordereddict.ordereddict

        with PushPopItem(sys.modules, '_ordereddict', None):
            assert _GetSymbol() == _OrderedDict
Ejemplo n.º 3
0
    def testOdict(self):
        _ordereddict = pytest.importorskip('_ordereddict')
        assert _GetSymbol() == _ordereddict.ordereddict

        with PushPopItem(sys.modules, '_ordereddict', None):
            assert _GetSymbol() == _OrderedDict