Skip to content

Commit

Permalink
Adapt the ABCMeta test to take in account _py_abc
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Jun 4, 2018
1 parent 180aec8 commit be874a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/tests/unittest_scoped_nodes.py
Expand Up @@ -1187,7 +1187,7 @@ class WithMeta(object):
inferred = next(klass.infer())
metaclass = inferred.metaclass()
self.assertIsInstance(metaclass, scoped_nodes.ClassDef)
self.assertEqual(metaclass.qname(), 'abc.ABCMeta')
self.assertIn(metaclass.qname(), ('abc.ABCMeta', '_py_abc.ABCMeta'))

def test_using_invalid_six_add_metaclass_call(self):
klass = builder.extract_node('''
Expand Down

0 comments on commit be874a9

Please sign in to comment.