@@ -1331,8 +1331,6 @@ def test_expanduser_common(self):
1331
1331
p = P (P ('' ).absolute ().anchor ) / '~'
1332
1332
self .assertEqual (p .expanduser (), p )
1333
1333
1334
- # TODO: RUSTPYTHON
1335
- @unittest .expectedFailure
1336
1334
def test_exists (self ):
1337
1335
P = self .cls
1338
1336
p = P (BASE )
@@ -1742,8 +1740,6 @@ def test_mkdir(self):
1742
1740
p .mkdir ()
1743
1741
self .assertEqual (cm .exception .errno , errno .EEXIST )
1744
1742
1745
- # TODO: RUSTPYTHON
1746
- @unittest .expectedFailure
1747
1743
def test_mkdir_parents (self ):
1748
1744
# Creating a chain of directories.
1749
1745
p = self .cls (BASE , 'newdirB' , 'newdirC' )
@@ -1891,8 +1887,6 @@ def test_symlink_to(self):
1891
1887
self .assertTrue (link .is_dir ())
1892
1888
self .assertTrue (list (link .iterdir ()))
1893
1889
1894
- # TODO: RUSTPYTHON
1895
- @unittest .expectedFailure
1896
1890
def test_is_dir (self ):
1897
1891
P = self .cls (BASE )
1898
1892
self .assertTrue ((P / 'dirA' ).is_dir ())
@@ -1906,8 +1900,6 @@ def test_is_dir(self):
1906
1900
self .assertIs ((P / 'dirA\udfff ' ).is_dir (), False )
1907
1901
self .assertIs ((P / 'dirA\x00 ' ).is_dir (), False )
1908
1902
1909
- # TODO: RUSTPYTHON
1910
- @unittest .expectedFailure
1911
1903
def test_is_file (self ):
1912
1904
P = self .cls (BASE )
1913
1905
self .assertTrue ((P / 'fileA' ).is_file ())
@@ -1922,8 +1914,6 @@ def test_is_file(self):
1922
1914
self .assertIs ((P / 'fileA\x00 ' ).is_file (), False )
1923
1915
1924
1916
@only_posix
1925
- # TODO: RUSTPYTHON
1926
- @unittest .expectedFailure
1927
1917
def test_is_mount (self ):
1928
1918
P = self .cls (BASE )
1929
1919
R = self .cls ('/' ) # TODO: Work out Windows.
@@ -1937,8 +1927,6 @@ def test_is_mount(self):
1937
1927
self .assertIs (self .cls ('/\udfff ' ).is_mount (), False )
1938
1928
self .assertIs (self .cls ('/\x00 ' ).is_mount (), False )
1939
1929
1940
- # TODO: RUSTPYTHON
1941
- @unittest .expectedFailure
1942
1930
def test_is_symlink (self ):
1943
1931
P = self .cls (BASE )
1944
1932
self .assertFalse ((P / 'fileA' ).is_symlink ())
@@ -1955,8 +1943,6 @@ def test_is_symlink(self):
1955
1943
self .assertIs ((P / 'linkA\udfff ' ).is_file (), False )
1956
1944
self .assertIs ((P / 'linkA\x00 ' ).is_file (), False )
1957
1945
1958
- # TODO: RUSTPYTHON
1959
- @unittest .expectedFailure
1960
1946
def test_is_fifo_false (self ):
1961
1947
P = self .cls (BASE )
1962
1948
self .assertFalse ((P / 'fileA' ).is_fifo ())
@@ -1967,8 +1953,6 @@ def test_is_fifo_false(self):
1967
1953
self .assertIs ((P / 'fileA\x00 ' ).is_fifo (), False )
1968
1954
1969
1955
@unittest .skipUnless (hasattr (os , "mkfifo" ), "os.mkfifo() required" )
1970
- # TODO: RUSTPYTHON
1971
- @unittest .expectedFailure
1972
1956
def test_is_fifo_true (self ):
1973
1957
P = self .cls (BASE , 'myfifo' )
1974
1958
try :
@@ -1981,8 +1965,6 @@ def test_is_fifo_true(self):
1981
1965
self .assertIs (self .cls (BASE , 'myfifo\udfff ' ).is_fifo (), False )
1982
1966
self .assertIs (self .cls (BASE , 'myfifo\x00 ' ).is_fifo (), False )
1983
1967
1984
- # TODO: RUSTPYTHON
1985
- @unittest .expectedFailure
1986
1968
def test_is_socket_false (self ):
1987
1969
P = self .cls (BASE )
1988
1970
self .assertFalse ((P / 'fileA' ).is_socket ())
@@ -1993,8 +1975,6 @@ def test_is_socket_false(self):
1993
1975
self .assertIs ((P / 'fileA\x00 ' ).is_socket (), False )
1994
1976
1995
1977
@unittest .skipUnless (hasattr (socket , "AF_UNIX" ), "Unix sockets required" )
1996
- # TODO: RUSTPYTHON
1997
- @unittest .expectedFailure
1998
1978
def test_is_socket_true (self ):
1999
1979
P = self .cls (BASE , 'mysock' )
2000
1980
sock = socket .socket (socket .AF_UNIX , socket .SOCK_STREAM )
@@ -2011,8 +1991,6 @@ def test_is_socket_true(self):
2011
1991
self .assertIs (self .cls (BASE , 'mysock\udfff ' ).is_socket (), False )
2012
1992
self .assertIs (self .cls (BASE , 'mysock\x00 ' ).is_socket (), False )
2013
1993
2014
- # TODO: RUSTPYTHON
2015
- @unittest .expectedFailure
2016
1994
def test_is_block_device_false (self ):
2017
1995
P = self .cls (BASE )
2018
1996
self .assertFalse ((P / 'fileA' ).is_block_device ())
@@ -2022,8 +2000,6 @@ def test_is_block_device_false(self):
2022
2000
self .assertIs ((P / 'fileA\udfff ' ).is_block_device (), False )
2023
2001
self .assertIs ((P / 'fileA\x00 ' ).is_block_device (), False )
2024
2002
2025
- # TODO: RUSTPYTHON
2026
- @unittest .expectedFailure
2027
2003
def test_is_char_device_false (self ):
2028
2004
P = self .cls (BASE )
2029
2005
self .assertFalse ((P / 'fileA' ).is_char_device ())
@@ -2033,8 +2009,6 @@ def test_is_char_device_false(self):
2033
2009
self .assertIs ((P / 'fileA\udfff ' ).is_char_device (), False )
2034
2010
self .assertIs ((P / 'fileA\x00 ' ).is_char_device (), False )
2035
2011
2036
- # TODO: RUSTPYTHON
2037
- @unittest .expectedFailure
2038
2012
def test_is_char_device_true (self ):
2039
2013
# Under Unix, /dev/null should generally be a char device.
2040
2014
P = self .cls ('/dev/null' )
@@ -2159,8 +2133,6 @@ def test_open_mode(self):
2159
2133
st = os .stat (join ('other_new_file' ))
2160
2134
self .assertEqual (stat .S_IMODE (st .st_mode ), 0o644 )
2161
2135
2162
- # TODO: RUSTPYTHON
2163
- @unittest .expectedFailure
2164
2136
def test_touch_mode (self ):
2165
2137
old_mask = os .umask (0 )
2166
2138
self .addCleanup (os .umask , old_mask )
0 commit comments