Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f80f75e commit 39d135dCopy full SHA for 39d135d
1 file changed
Lib/test/test_importlib/resources/test_files.py
@@ -79,14 +79,14 @@ def test_module_resources(self):
79
A module can have resources found adjacent to the module.
80
"""
81
spec = {
82
- 'mod_res.py': '',
+ 'mod.py': '',
83
'res.txt': 'resources are the best',
84
}
85
_path.build(spec, self.site_dir)
86
- import mod_res
+ import mod
87
88
- actual = resources.files(mod_res).joinpath('res.txt').read_text(encoding='utf-8')
89
- self.assertEqual(actual, spec['res.txt'])
+ actual = resources.files(mod).joinpath('res.txt').read_text(encoding='utf-8')
+ assert actual == spec['res.txt']
90
91
92
class ImplicitContextFilesTests(SiteDir, unittest.TestCase):
0 commit comments