Is there a "catch" to use pkgutil.get_data in test...
# general
c
Is there a "catch" to use pkgutil.get_data in tests? I think from these docs these two statements should be equivilant
Copy code
data = open(os.path.join(os.path.dirname(sys.modules[__name__].__file__), 'resources/dmidecode-basic'), 'rb').read()
        data = pkgutil.get_data(__name__, 'resources/dmidecode-basic')
but only the first one is working for me. I have
Copy code
python_tests(
    name='test_intake',
    sources=globs('test_intake.py'),
    dependencies=[
    ],
  resource_targets=[
    ':resources',
  ],
)
resources(
  name='resources',
  sources=globs('resources/*'),
)