bitmask.py: fix failed unit tests
This commit is contained in:
parent
4f68a5d677
commit
94ba8ba272
@ -62,7 +62,7 @@ class Bitmask:
|
|||||||
|
|
||||||
@AllFlags.setter
|
@AllFlags.setter
|
||||||
def AllFlags(self, value):
|
def AllFlags(self, value):
|
||||||
if not issubclass(type(self.AllFlags), EnumMeta):
|
if not issubclass(type(value), EnumMeta):
|
||||||
raise TypeError("flags aren't Enum values")
|
raise TypeError("flags aren't Enum values")
|
||||||
|
|
||||||
# Allow setting only once
|
# Allow setting only once
|
||||||
|
Loading…
Reference in New Issue
Block a user