Skip to content

Commit 6ffb3d3

Browse files
committed
Add test, clarify reason for inline check
1 parent 4d873e0 commit 6ffb3d3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ipykernel/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _convert_to_long_pathname(filename):
5555
filename = buf.value
5656
return filename
5757

58-
# test that it works
58+
# test that it works so if there are any issues we fail just once here
5959
_convert_to_long_pathname(__file__)
6060
except:
6161
pass

ipykernel/tests/test_debugger.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,9 @@ def test_rich_inspect_at_breakpoint(kernel_with_debug):
271271
)
272272

273273
assert reply["body"]["data"] == {"text/plain": locals_[0]["value"]}
274+
275+
276+
def test_convert_to_long_pathname():
277+
if sys.platform == 'win32':
278+
from ipykernel.compiler import _convert_to_long_pathname
279+
_convert_to_long_pathname(__file__)

0 commit comments

Comments
 (0)