Skip to content

Commit 6dcf157

Browse files
SwooshyCuebalanking
authored andcommitted
[#136] Add tests for ensuring libpython symbol availability
1 parent d9618ed commit 6dcf157

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

python_rules/ruleimportcsv.r

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main(rule_args, callback, rei):
2+
import csv
3+
callback.writeLine('stdout', 'loaded module ' + csv.__name__)
4+
5+
INPUT null
6+
OUTPUT ruleExecOut

python_rules/ruleimportctypes.r

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main(rule_args, callback, rei):
2+
import ctypes
3+
callback.writeLine('stdout', 'loaded module ' + ctypes.__name__)
4+
5+
INPUT null
6+
OUTPUT ruleExecOut

python_rules/ruleimportssl.r

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main(rule_args, callback, rei):
2+
import ssl
3+
callback.writeLine('stdout', 'loaded module ' + ssl.__name__)
4+
5+
INPUT null
6+
OUTPUT ruleExecOut

0 commit comments

Comments
 (0)