def test_filename_ctor_pathlib():
    pathlib = pytest.importorskip('pathlib')

    path = pathlib.Path(__file__)
    fn = Filename(path)
    assert fn.to_os_specific_w() == str(path)