Skip to content

Commit b037b19

Browse files
committed
Windows behaves like unix, remove nt-specific assertion
1 parent d85de84 commit b037b19

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_serverapp.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,4 @@ async def test_absolute_preferred_dir_not_root_subdir_set(tmp_path, jp_configura
401401
with pytest.raises(TraitError) as error:
402402
app.contents_manager.preferred_dir = not_subdir_path
403403

404-
if os.name == "nt":
405-
assert "is not a relative API path" in str(error.value)
406-
else:
407-
assert "is outside root contents directory" in str(error.value)
404+
assert "is outside root contents directory" in str(error.value)

0 commit comments

Comments
 (0)