

def test_instance(self):
    self._check_path_limitations('baz')
    write_file(os.path.join(self.subpkgname, 'baz.py'), 'class baz:\n    pass\n')
    importlib.invalidate_caches()
    from areallylongpackageandmodulenametotestreprtruncation.areallylongpackageandmodulenametotestreprtruncation import baz
    ibaz = baz.baz()
    self.assertTrue(repr(ibaz).startswith(('<%s.baz object at 0x' % baz.__name__)))

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_reprlib.py LongReprTest.test_instance/original