Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/build/build/soong/python/tests/top_level_dirs/     Datei vom 26.5.2026 mit Größe 371 B image not shown  

Quelle  main.py   Sprache: Python

 

import unittest
import sys

print(sys.path, file=sys.stderr)

class TestProtoWithPkgPath(unittest.TestCase):

    def test_cant_import_mymodule_directly(self):
        with self.assertRaises(ImportError):
            import mymodule

    def test_can_import_mymodule_by_parent_package(self):
        import mypkg.mymodule


if __name__ == '__main__':
    unittest.main()

Messung
CHZG
939610096

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland