PATH: //opt/alt/python311/lib64/python3.11/test/test_tools
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📄 __main__.py
↓
X
📁 __pycache__/
X
📄 test_fixcid.py
↓
X
📄 test_freeze.py
↓
X
📄 test_gprof2html.py
↓
X
📄 test_i18n.py
↓
X
📄 test_lll.py
↓
X
📄 test_makefile.py
↓
X
📄 test_md5sum.py
↓
X
📄 test_pathfix.py
↓
X
📄 test_pdeps.py
↓
X
📄 test_pindent.py
↓
X
📄 test_reindent.py
↓
X
📄 test_sundry.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: test_pdeps.py
"""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', encoding='utf-8') 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()
SIMPAN PERUBAHAN