Skip to content

Commit

Permalink
Don't use a class variable for _libraries in LibraryManager
Browse files Browse the repository at this point in the history
This should have no effect when running the fusesoc program, but the
class variable can cause problems with test code (which doesn't
restart Python between different tests) because different the state
hangs around.
  • Loading branch information
rswarbrick authored and imphil committed Apr 3, 2020
1 parent 588fde5 commit f7b1777
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fusesoc/librarymanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ def l(s):


class LibraryManager:
_libraries = []

def __init__(self, library_root):
self._libraries = []
self.library_root = library_root

def add_library(self, library):
Expand Down

0 comments on commit f7b1777

Please sign in to comment.