File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
graalpython/lib-python/3/test Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1082,13 +1082,15 @@ def test_alive(self):
10821082 self .assertIs (r ().__func__ , o .some_method .__func__ )
10831083 self .assertEqual (r ()(), 4 )
10841084
1085+ @support .impl_detail ("weakref nondeterministic" , graalpy = False )
10851086 def test_object_dead (self ):
10861087 o = Object (1 )
10871088 r = weakref .WeakMethod (o .some_method )
10881089 del o
10891090 gc .collect ()
10901091 self .assertIs (r (), None )
10911092
1093+ @support .impl_detail ("weakref nondeterministic" , graalpy = False )
10921094 def test_method_dead (self ):
10931095 C = self ._subclass ()
10941096 o = C (1 )
@@ -1114,6 +1116,7 @@ def cb(arg):
11141116 gc .collect ()
11151117 self .assertEqual (calls , [r ])
11161118
1119+ @support .impl_detail ("weakref nondeterministic" , graalpy = False )
11171120 def test_callback_when_method_dead (self ):
11181121 # Test callback behaviour when method dies first.
11191122 C = self ._subclass ()
You can’t perform that action at this time.
0 commit comments