def test_raising_parent_after_relative_importing_child(self):
        def __init__():
            from . import module
            0/1
        mock = util.mock_modules('pkg.__init__', 'pkg.module',
                                 module_code={'pkg': __init__})
        with mock:
            with util.import_state(meta_path=[mock]):
                with self.assertRaises((ZeroDivisionError, ImportError)):
                    # This raises ImportError on the "from . import module"
                    # line, not sure why.
                    import_util.import_('pkg')
                self.assertNotIn('pkg', sys.modules)
                with self.assertRaises((ZeroDivisionError, ImportError)):
                    import_util.import_('pkg.module')
                self.assertNotIn('pkg', sys.modules)
                # XXX False
                #self.assertIn('pkg.module', sys.modules)
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_importlib/import_/test_packages.py/ParentModuleTests.test_raising_parent_after_relative_importing_child/swapped operands of `/`