Fix test_pidbox unittests to support non-linux platforms (#1398)

This commit is contained in:
Matus Valo 2021-10-05 22:37:59 +02:00 committed by GitHub
parent 88ca371bcf
commit 0253cfb7b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -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')