Commit Graph

12 Commits

Author SHA1 Message Date
Dave Halter e7a019e628 The implicit namespace package test from 4b276bae87 can only be used for Python 3.4+ 2018-07-21 11:51:41 +02:00
Dave Halter 4b276bae87 The import resolution for namespace packages was wrong
With this change we can now include all parents of the script, which will make
relative imports always work.

Now the whole meta_path is scanned and not just importlib's PathFinder.

Fixes #1183.
2018-07-21 00:16:10 +02:00
Dave Halter d063dadcf7 Don't need the tests from #122 2018-03-05 01:01:43 +01:00
Dave Halter 0144de1290 Refactor the namespace package tests 2018-03-05 00:55:35 +01:00
Elvis Pranskevichus 3fb95e3a58 Add a failing test for nested PEP420 namespace packages 2018-03-05 00:18:30 +01:00
Dave Halter bf73fcbed4 More test_evaluate Script fixtures 2017-12-29 19:36:05 +01:00
Dave Halter 6940900c58 A lot more fixes - fix all evaluate integration tests. 2016-12-03 22:17:38 +01:00
scribu 4fbde0001a add test for namespaced packages 2016-07-29 08:31:21 +02:00
immerrr 4eb3cf7921 Improve virtualenv support & egg-link resolution
- add sys_path= kwarg to Script & Evaluator constructors

- store sys_path for each evaluator instance

- replace get_sys_path with get_venv_path

- get_venv_path: use addsitedir to load .pth extension files

- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Dave Halter 95620accdb Fix tests for namespace packages. 2014-12-10 19:19:13 +01:00
Dave Halter 49b34b4d01 Stuff mostly related to namespace packages. 2014-12-07 16:51:54 +01:00
Dave Halter 8660555d7b moved api, parser and evaluate test directories to test_api, test_parser... 2014-01-29 21:16:18 +01:00