# issue 5 assert(isinstance(__debug__,bool)) # issue #6 : unknown encoding: windows-1250 s = "Dziś jeść ryby" b = s.encode('windows-1250') assert b == b'Dzi\x9c je\x9c\xe6 ryby' assert b.decode('windows-1250') == "Dziś jeść ryby" # issue #7 : attribute set on module is not available from inside the module import inject_name_in_module inject_name_in_module.xxx = 123 assert inject_name_in_module.xxx == 123 assert inject_name_in_module.yyy() == 246 # issue #15 in PierreQuentel/brython class a(object): def __init__(self): self.x = 9 a.__init__ class b(a): def __init__(s): super().__init__() assert s.x==9 z = b() # issue 12 x = {'a':1} assert 'a' in x class ToDir:
# issue 5 assert (isinstance(__debug__, bool)) # issue #6 : unknown encoding: windows-1250 s = "Dziś jeść ryby" b = s.encode('windows-1250') assert b == b'Dzi\x9c je\x9c\xe6 ryby' assert b.decode('windows-1250') == "Dziś jeść ryby" # issue #7 : attribute set on module is not available from inside the module import inject_name_in_module inject_name_in_module.xxx = 123 assert inject_name_in_module.xxx == 123 assert inject_name_in_module.yyy() == 246 # issue #15 in PierreQuentel/brython class a(object): def __init__(self): self.x = 9 a.__init__ class b(a): def __init__(s): super().__init__() assert s.x == 9