File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,7 +122,9 @@ def find_nb_path_via_parent_process():
122122 potential_path = arg # Store the last one found
123123
124124 if is_nbconvert_call and "--inplace" not in cmdline :
125- raise ValueError ("Please execute 'nbconvert' with option '--inplace'." )
125+ raise ValueError (
126+ "Please execute notebook 'nbconvert' by passing option '--inplace'."
127+ )
126128
127129 if is_nbconvert_call and potential_path :
128130 # We found something that looks like an nbconvert call and an ipynb file
Original file line number Diff line number Diff line change @@ -8,11 +8,10 @@ def test_running_via_nbconvert():
88 shell = True ,
99 capture_output = True ,
1010 )
11- print (result .stdout .decode ())
12- print (result .stderr .decode ())
1311 assert result .returncode == 1
1412 assert (
15- "Please execute 'nbconvert' with option '--inplace'." in result .stderr .decode ()
13+ "Please execute notebook 'nbconvert' by passing option '--inplace'."
14+ in result .stderr .decode ()
1615 )
1716
1817 result = subprocess .run (
@@ -22,4 +21,4 @@ def test_running_via_nbconvert():
2221 )
2322 print (result .stdout .decode ())
2423 print (result .stderr .decode ())
25- assert result .returncode == 1
24+ assert result .returncode == 0
You can’t perform that action at this time.
0 commit comments