Exemple #1
0
def test_pretty_flags():
    assert dis.pretty_flags(1) == '0x00000001 (OPTIMIZED)'
Exemple #2
0
 def test_pretty_flags_no_flags(self):
     self.assertEqual(dis.pretty_flags(0), '0x00000000 (0x0)')
Exemple #3
0
 def test_pretty_flags_no_flags(self):
     self.assertEqual(dis.pretty_flags(0), '0x00000000 (0x0)')
Exemple #4
0
def test_pretty_flags():
    assert dis.pretty_flags(1) == '0x00000001 (OPTIMIZED)'