Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit dd24367

Browse files
committed
test_modname is only the last package part
1 parent e10a4ce commit dd24367

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/gentest

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def main(args):
7070
script = os.path.join(py_dir, '%s.py' % modname.replace('.', '/'))
7171
gopath = gopath + os.pathsep + workdir
7272
testfile_modname = modname[:-5] if modname.endswith('_test') else modname
73+
testfile_modname = testfile_modname.split('.')[-1]
7374

7475
if not os.path.isfile(script):
7576
return # The script does not exist. And is OK!

0 commit comments

Comments
 (0)