github.phpd.cn/thought-machine/please@v12.2.0+incompatible/tools/please_pex/pex_import_test.py (about) 1 # Test for importing certain modules with the new incremental pex 2 # rules. These have proven tricky, seemingly around requests doing 3 # "from . import utils" etc (which is perfectly fine, and was working 4 # previously, this just helps investigate & make sure it's fixed). 5 6 import unittest 7 8 9 class PexImportTest(unittest.TestCase): 10 11 def test_import_requests(self): 12 """Test importing Requests.""" 13 from third_party.python import requests 14 15 def test_import_dateutil(self): 16 """Test importing dateutil.""" 17 from third_party.python.dateutil import parser 18 19 20 if __name__ == '__main__': 21 unittest.main()