def _test_import_deprecated_with_no_attribute_inner():
    """to ensure that create_attribute=False works too"""

    # sets up the DeprecationFinders - fake_b is setup with create_attribute=False
    import cirq.testing._compat_test_data

    # the parent module should not have fake_b as an attribute
    assert not hasattr(cirq.testing._compat_test_data, 'fake_b')
to ensure that create_attribute=False works too
cirq-core/cirq/_compat_test.py