Skip to content

Commit ab0f2ed

Browse files
committed
Tweak linux test
1 parent ca0be77 commit ab0f2ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jupyter_server/services/contents/filemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _default_preferred_dir(self):
7878
pass
7979
value = self.parent._normalize_dir(value)
8080
if not os.path.isdir(value):
81-
raise TraitError(_i18n("No such directory: '%r'") % value)
81+
raise TraitError(_i18n("No such directory: %r") % value)
8282
if not (value + os.path.sep).startswith(self.root_dir):
8383
raise TraitError("%s is outside root contents directory" % value)
8484
return os.path.relpath(value, self.root_dir).replace(os.path.sep, "/")

tests/test_serverapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,4 +406,4 @@ def test_absolute_preferred_dir_not_root_subdir_set(tmp_path, jp_configurable_se
406406
if os.name == "nt":
407407
assert "is not a relative API path" in str(error)
408408
else:
409-
assert "is outside root contents directory" in str(error)
409+
assert "No such directory" in str(error)

0 commit comments

Comments
 (0)