UnitTesting
UnitTesting copied to clipboard
AttributeError: 'PackageManager' object has no attribute '_is_dependency'
A recently released version of PackageControl has removed a function used in UnitTesting, causing an AttributeError.
See https://github.com/wbond/package_control/commit/a59d9ef842d7bc3f20df263ec209890c40fd2e47 for the change.
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "./python3.3/threading.py", line 858, in run
File "/Users/eric/Library/Application Support/Sublime Text/Packages/UnitTesting/unittesting/package.py", line 43, in <lambda>
threading.Thread(target=lambda: self.unit_testing(stream, package, settings)).start()
File "/Users/eric/Library/Application Support/Sublime Text/Packages/UnitTesting/unittesting/current.py", line 25, in unit_testing
package, dummy=True, show_reload_progress=settings["show_reload_progress"])
File "/Users/eric/Library/Application Support/Sublime Text/Packages/UnitTesting/unittesting/mixin.py", line 130, in reload_package
reload_package(package, dummy=dummy, verbose=True)
File "/Users/eric/Library/Application Support/Sublime Text/Packages/UnitTesting/unittesting/utils/reloader.py", line 83, in reload_package
if is_dependency(pkg_name):
File "/Users/eric/Library/Application Support/Sublime Text/Packages/UnitTesting/unittesting/utils/reloader.py", line 16, in is_dependency
return PackageManager()._is_dependency(pkg_name)
AttributeError: 'PackageManager' object has no attribute '_is_dependency'
It isn't immediately obvious to me how to rework it other than to remove the is_dependency check? I'm not sure if there is a better reloader to use?