diff options
Diffstat (limited to 'Lib/test/leakers')
-rw-r--r-- | Lib/test/leakers/test_selftype.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/leakers/test_selftype.py b/Lib/test/leakers/test_selftype.py index 4207c32..12f2934 100644 --- a/Lib/test/leakers/test_selftype.py +++ b/Lib/test/leakers/test_selftype.py @@ -6,8 +6,8 @@ import gc def leak(): class T(type): pass - class U(type): - __metaclass__ = T + class U(type, metaclass=T): + pass U.__class__ = U del U gc.collect(); gc.collect(); gc.collect() |