From 5ba2da3fef4b92fc8a29b88a40a3731fbbea5b48 Mon Sep 17 00:00:00 2001 From: Mikko Korpela Date: Wed, 24 Jan 2024 22:50:40 +0200 Subject: [PATCH] test for nested class regression --- tests/test_overrides.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_overrides.py b/tests/test_overrides.py index 5cc5452..9235d0f 100644 --- a/tests/test_overrides.py +++ b/tests/test_overrides.py @@ -54,6 +54,12 @@ def some_method(self): """Subber""" return 1 +class Nest: + class First: + class Second: + def foo(self): + pass + class Sub2(test_somepackage.SomeClass, SuperClass): @override @@ -90,6 +96,11 @@ class SomeClass: def check(self): return 1 +class ChildOfNested(Nest.First.Second): + @override + def foo(self): + pass + class OverridesTests(unittest.TestCase): def test_overrides_passes_for_same_package_superclass(self):