Bug 1874684 - Part 28: Return DateDuration from DifferenceISODateTime. r=mgaudet
[gecko.git] / python / mozbuild / mozbuild / test / test_pythonutil.py
blob6ebb5cc46e275de68bc7e33fc4648fd6fe3920ef
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 import os
7 from mozunit import main
9 from mozbuild.pythonutil import iter_modules_in_path
12 def test_iter_modules_in_path():
13 tests_path = os.path.normcase(os.path.dirname(__file__))
14 paths = list(iter_modules_in_path(tests_path))
15 assert set(paths) == set(
17 os.path.join(os.path.abspath(tests_path), "__init__.py"),
18 os.path.join(os.path.abspath(tests_path), "test_pythonutil.py"),
23 if __name__ == "__main__":
24 main()