forked from nanobowers/py2cr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed up class testcase support for py3.6 due to ast differences in p…
…y3.8/3.9
- Loading branch information
1 parent
5407d91
commit 4ed2398
Showing
2 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,32 @@ | ||
class A(object): | ||
class II(object): | ||
v = 1 | ||
|
||
a = A() | ||
XX = A | ||
x = XX() | ||
print(x.v) | ||
class SS(object): | ||
v = "abcd" | ||
|
||
class FF(object): | ||
v = 1.234 | ||
|
||
ii = II() | ||
XX = II | ||
xx = XX() | ||
print(ii.v) | ||
print(xx.v) | ||
print(XX.v) | ||
|
||
|
||
ss = SS() | ||
YY = SS | ||
yy = YY() | ||
print(ss.v) | ||
print(yy.v) | ||
print(YY.v) | ||
|
||
|
||
ff = FF() | ||
ZZ = FF | ||
zz = ZZ() | ||
print(ff.v) | ||
print(zz.v) | ||
print(ZZ.v) | ||
|