Skip to content

Commit

Permalink
test: Fix Op test
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed May 4, 2016
1 parent e9f7238 commit f30432b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ def testCreate(self):
for N in range(4):
myop = MPI.Op.Create(mysum, commute)
self.assertFalse(myop.is_predefined)
if ((hasattr(sys, 'pypy_version_info') and
comm.size > 1) or
sys.version_info < (2, 7)):
myop.Free()
continue
try:
if sys.version_info <= (2, 6): continue
if hasattr(sys, 'pypy_version_info'):
if comm.size > 1: continue
# buffer(empty_array) returns
# the same non-NULL pointer !!!
if N == 0: continue
Expand Down

0 comments on commit f30432b

Please sign in to comment.