diff tests/test_parse_files/test_classdef.py @ 67:8ce78e2ba48c

Implement class keywords.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 13 Jun 2016 01:43:19 +0100
parents e244c492ff07
children
line wrap: on
line diff
--- a/tests/test_parse_files/test_classdef.py
+++ b/tests/test_parse_files/test_classdef.py
@@ -1,3 +1,4 @@
-class a():
-    def b():
+class A(object, metaclass=type):
+    def b(self):
         print("a")
+A().b()