Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

test_scandir:test_context_manager

tmpdir = local('D:\\SystemTemp\\pytest-of-matti\\pytest-74\\test_context_manager0')

    def test_context_manager(tmpdir):
        import warnings, gc
        dir1 = _make_dir1(tmpdir)
        with warnings.catch_warnings(record=True) as l:
            warnings.simplefilter("always")
            with os.scandir(dir1) as iterator:
                next(iterator)
            del iterator
            gc.collect()
>       assert not l
E       assert not [<warnings.WarningMessage object at 0x0000022ed7eaa020>, <warnings.WarningMessage object at 0x0000022ed7eaa0c8>, <warn...aa138>, <warnings.WarningMessage object at 0x0000022ed7eaa1a8>, <warnings.WarningMessage object at 0x0000022ed7eaa1e0>]

..\build\extra_tests\test_scandir.py:298: AssertionError
builder: pypy-c-jit-win-x86-64 build #2478+
test: test_scandir:test_context_manager