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

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

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

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