diff options
Diffstat (limited to 'lib/sqlalchemy/test/util.py')
| -rw-r--r-- | lib/sqlalchemy/test/util.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sqlalchemy/test/util.py b/lib/sqlalchemy/test/util.py index cd73b44d0..ff2c3d7b7 100644 --- a/lib/sqlalchemy/test/util.py +++ b/lib/sqlalchemy/test/util.py @@ -64,4 +64,15 @@ class RandomSet(set): self.remove(item) return item + def union(self, other): + return RandomSet(set.union(self, other)) + + def difference(self, other): + return RandomSet(set.difference(self, other)) + + def intersection(self, other): + return RandomSet(set.intersection(self, other)) + + def copy(self): + return RandomSet(self)
\ No newline at end of file |
