From 7bf8088d8044c3ff730380fca8a4bf9fadced36a Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 24 Jul 2015 02:57:56 +0200 Subject: improve inline scripts, fix #683, fix #684 --- test/scripts/a.py | 5 +---- test/scripts/a_helper.py | 4 ++++ test/scripts/unloaderr.py | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 test/scripts/a_helper.py create mode 100644 test/scripts/unloaderr.py (limited to 'test/scripts') diff --git a/test/scripts/a.py b/test/scripts/a.py index 210fea78..d4272ac8 100644 --- a/test/scripts/a.py +++ b/test/scripts/a.py @@ -1,7 +1,4 @@ -import argparse - -parser = argparse.ArgumentParser() -parser.add_argument('--var', type=int) +from a_helper import parser var = 0 diff --git a/test/scripts/a_helper.py b/test/scripts/a_helper.py new file mode 100644 index 00000000..2eeed0d4 --- /dev/null +++ b/test/scripts/a_helper.py @@ -0,0 +1,4 @@ +import argparse + +parser = argparse.ArgumentParser() +parser.add_argument('--var', type=int) \ No newline at end of file diff --git a/test/scripts/unloaderr.py b/test/scripts/unloaderr.py new file mode 100644 index 00000000..f3743107 --- /dev/null +++ b/test/scripts/unloaderr.py @@ -0,0 +1,2 @@ +def done(ctx): + raise RuntimeError() \ No newline at end of file -- cgit v1.2.3