Python: Add 2-only library tests.

This commit is contained in:
Mark Shannon
2019-02-08 14:49:04 +00:00
parent 49307a72b4
commit adb4c42aa5
124 changed files with 2424 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
/* Test that there are no literals that do not have a corresponding object. */
import python
string repr(Expr e) {
result = e.(Num).getN() or
result = e.(Bytes).getS() or
result = e.(Unicode).getS()
}
from ImmutableLiteral l
where
not exists(l.getLiteralObject())
select l.getLocation().getStartLine(), repr(l)

View File

@@ -0,0 +1,5 @@
0666
01
1L
4987312561856745907287624786230562734672583763984576267L