Lines Matching refs:module2
405 for module3, module2 in REVERSE_IMPORT_MAPPING.items():
406 with self.subTest((module3, module2)):
412 self.assertIn(module2, IMPORT_MAPPING)
413 self.assertEqual(IMPORT_MAPPING[module2], module3)
416 for (module3, name3), (module2, name2) in REVERSE_NAME_MAPPING.items():
417 with self.subTest(((module3, name3), (module2, name2))):
418 if (module2, name2) == ('exceptions', 'OSError'):
421 elif (module2, name2) == ('exceptions', 'ImportError'):
425 module, name = mapping(module2, name2)
436 for module2, module3 in IMPORT_MAPPING.items():
437 with self.subTest((module2, module3)):
443 if ((module2, module3) not in ALT_IMPORT_MAPPING and
444 REVERSE_IMPORT_MAPPING.get(module3, None) != module2):
446 if (module3, module2) == (m3, m2):
450 (module3, module2))
456 for (module2, name2), (module3, name3) in NAME_MAPPING.items():
457 with self.subTest(((module2, name2), (module3, name3))):
463 if (module2, name2, module3, name3) not in ALT_NAME_MAPPING:
464 self.assertEqual((module, name), (module2, name2))