diff options
| author | Matus Valo <matusvalo@users.noreply.github.com> | 2021-10-05 22:37:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-05 22:37:59 +0200 |
| commit | 0253cfb7b2379b2a4290ee663d40f55c03147f99 (patch) | |
| tree | b5f44b15f2801e05cd61911ce0d400ee0aac34da | |
| parent | 88ca371bcf69edc1d0d1c9fbb7d5f6b6d1a74c01 (diff) | |
| download | kombu-0253cfb7b2379b2a4290ee663d40f55c03147f99.tar.gz | |
Fix test_pidbox unittests to support non-linux platforms (#1398)
| -rw-r--r-- | t/unit/test_pidbox.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/t/unit/test_pidbox.py b/t/unit/test_pidbox.py index d79a14fd..fac46139 100644 --- a/t/unit/test_pidbox.py +++ b/t/unit/test_pidbox.py @@ -341,7 +341,7 @@ class test_Mailbox: return m.payload -GLOBAL_PIDBOX = None +GLOBAL_PIDBOX = pidbox.Mailbox('global_unittest_mailbox') def getoid(): @@ -351,10 +351,6 @@ def getoid(): class test_PidboxOid: """Unittests checking oid consistency of Pidbox""" - def setup(self): - global GLOBAL_PIDBOX - GLOBAL_PIDBOX = pidbox.Mailbox('unittest_mailbox') - def test_oid_consistency(self): """Tests that oid is consistent in single process""" m1 = pidbox.Mailbox('mailbox1') |
