(self)
| 357 | """)) |
| 358 | |
| 359 | def test_replace_gc_tracked(self): |
| 360 | # Verify that __replace__ results are properly GC-tracked |
| 361 | time_struct = time.gmtime(0) |
| 362 | lst = [] |
| 363 | replaced_struct = time_struct.__replace__(tm_year=lst) |
| 364 | lst.append(replaced_struct) |
| 365 | |
| 366 | self.assertTrue(gc.is_tracked(replaced_struct)) |
| 367 | |
| 368 | if __name__ == "__main__": |
| 369 | unittest.main() |
nothing calls this directly
no test coverage detected