PATH:
opt
/
bitninja-python-dojo
/
embedded
/
lib
/
python3.9
/
test
/
test_tools
"""Tests for the pdeps script in the Tools directory.""" import os import unittest import tempfile from test.test_tools import skip_if_missing, import_tool skip_if_missing() class PdepsTests(unittest.TestCase): @classmethod def setUpClass(self): self.pdeps = import_tool('pdeps') def test_process_errors(self): # Issue #14492: m_import.match(line) can be None. with tempfile.TemporaryDirectory() as tmpdir: fn = os.path.join(tmpdir, 'foo') with open(fn, 'w') as stream: stream.write("#!/this/will/fail") self.pdeps.process(fn, {}) def test_inverse_attribute_error(self): # Issue #14492: this used to fail with an AttributeError. self.pdeps.inverse({'a': []}) if __name__ == '__main__': unittest.main()
[-] test_pdeps.py
[edit]
[-] test_sundry.py
[edit]
[-] test_gprof2html.py
[edit]
[+]
..
[-] test_reindent.py
[edit]
[-] test_lll.py
[edit]
[-] __main__.py
[edit]
[-] test_md5sum.py
[edit]
[+]
__pycache__
[-] test_i18n.py
[edit]
[-] __init__.py
[edit]
[-] test_pindent.py
[edit]
[-] test_pathfix.py
[edit]
[-] test_fixcid.py
[edit]