Searched refs:__package__ (Results 1 - 5 of 5) sorted by relevance

/external/chromium-trace/catapult/systrace/systrace/
H A Drun_systrace.py198 if __name__ == '__main__' and __package__ is None:
/external/python/cpython2/Lib/test/
H A Dtest_importlib.py85 module.__package__ = package
H A Dtest_import.py583 # Check both OK with __package__ and __name__ correct
584 ns = dict(__package__='test', __name__='test.notarealmodule')
589 ns = dict(__package__='test', __name__='notarealpkg.notarealmodule')
593 # Check relative fails with only __package__ wrong
594 ns = dict(__package__='foo', __name__='test.notarealmodule')
599 # Check relative fails with __package__ and __name__ wrong
600 ns = dict(__package__='foo', __name__='notarealpkg.notarealmodule')
606 ns = dict(__package__=object())
H A Dtest_compile.py515 import __package__.module namespace
520 self.assertIn("__package__", A.f.func_code.co_varnames)
/external/python/cpython2/Lib/
H A Drunpy.py71 __package__ = pkg_name)
158 __package__

Completed in 531 milliseconds