Skip to content

Commit 168b6c3

Browse files
committed
add dummy file param to fix jupyter
testshell in jupyter was failing due to an extra arg. this adds a dummy -f param, which allows TestShell to be used in a command line or jupyter environment
1 parent 93e38d5 commit 168b6c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ def parse_args(self):
194194
help="Run test using legacy wallets", dest='descriptors')
195195

196196
self.add_options(parser)
197+
# Running TestShell in a Jupyter notebook causes an additional -f argument
198+
# To keep TestShell from failing with an "unrecognized argument" error, we add a dummy "-f" argument
199+
# source: https://stackoverflow.com/questions/48796169/how-to-fix-ipykernel-launcher-py-error-unrecognized-arguments-in-jupyter/56349168#56349168
200+
parser.add_argument("-f", "--fff", help="a dummy argument to fool ipython", default="1")
197201
self.options = parser.parse_args()
198202
self.options.previous_releases_path = previous_releases_path
199203

0 commit comments

Comments
 (0)