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 a1106b7 commit db45852Copy full SHA for db45852
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.py': '',
+ 'mod_res.py': '',
83
'res.txt': 'resources are the best',
84
}
85
_path.build(spec, self.site_dir)
86
- import mod
+ import mod_res
87
88
- actual = resources.files(mod).joinpath('res.txt').read_text(encoding='utf-8')
89
- assert actual == spec['res.txt']
+ actual = resources.files(mod_res).joinpath('res.txt').read_text(encoding='utf-8')
+ self.assertEqual(actual, spec['res.txt'])
90
91
92
class ImplicitContextFilesTests(SiteDir, unittest.TestCase):
0 commit comments