@@ -780,6 +780,7 @@ def test_closefd_attr(self):
780780 file = self .open (f .fileno (), "r" , encoding = "utf-8" , closefd = False )
781781 self .assertEqual (file .buffer .raw .closefd , False )
782782
783+ @unittest .skipIf (sys .platform == 'win32' , 'TODO: RUSTPYTHON; cyclic GC not supported, causes file locking' )
783784 @unittest .expectedFailure # TODO: RUSTPYTHON
784785 def test_garbage_collection (self ):
785786 # FileIO objects are collected, and collecting them flushes
@@ -1795,6 +1796,7 @@ def test_misbehaved_io_read(self):
17951796 # checking this is not so easy.
17961797 self .assertRaises (OSError , bufio .read , 10 )
17971798
1799+ @unittest .skipIf (sys .platform == 'win32' , 'TODO: RUSTPYTHON; cyclic GC not supported, causes file locking' )
17981800 @unittest .expectedFailure # TODO: RUSTPYTHON
17991801 def test_garbage_collection (self ):
18001802 # C BufferedReader objects are collected.
@@ -2166,6 +2168,7 @@ def test_initialization(self):
21662168 self .assertRaises (ValueError , bufio .__init__ , rawio , buffer_size = - 1 )
21672169 self .assertRaises (ValueError , bufio .write , b"def" )
21682170
2171+ @unittest .skipIf (sys .platform == 'win32' , 'TODO: RUSTPYTHON; cyclic GC not supported, causes file locking' )
21692172 @unittest .expectedFailure # TODO: RUSTPYTHON
21702173 def test_garbage_collection (self ):
21712174 # C BufferedWriter objects are collected, and collecting them flushes
@@ -2677,6 +2680,7 @@ def test_interleaved_readline_write(self):
26772680class CBufferedRandomTest (BufferedRandomTest , SizeofTest ):
26782681 tp = io .BufferedRandom
26792682
2683+ @unittest .skipIf (sys .platform == 'win32' , 'TODO: RUSTPYTHON; cyclic GC not supported, causes file locking' )
26802684 @unittest .expectedFailure # TODO: RUSTPYTHON
26812685 def test_garbage_collection (self ):
26822686 CBufferedReaderTest .test_garbage_collection (self )
@@ -4122,6 +4126,7 @@ def test_initialization(self):
41224126 t = self .TextIOWrapper .__new__ (self .TextIOWrapper )
41234127 self .assertRaises (Exception , repr , t )
41244128
4129+ @unittest .skipIf (sys .platform == 'win32' , 'TODO: RUSTPYTHON; cyclic GC not supported, causes file locking' )
41254130 @unittest .expectedFailure # TODO: RUSTPYTHON
41264131 def test_garbage_collection (self ):
41274132 # C TextIOWrapper objects are collected, and collecting them flushes
0 commit comments