Skip to content

Commit 1425125

Browse files
committed
PYTHON-2937 Skip slow test on Windows and Jython
1 parent 09dca2d commit 1425125

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_transactions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ def gridfs_open_upload_stream(*args, **kwargs):
291291
# Require 4.2+ for large (16MB+) transactions.
292292
@client_context.require_version_min(4, 2)
293293
@client_context.require_transactions
294+
@unittest.skipIf(sys.platform.startswith('java'),
295+
'Jython is too slow to pass this test')
296+
@unittest.skipIf(sys.platform == 'win32',
297+
'Our Windows machines are too slow to pass this test')
294298
def test_transaction_starts_with_batched_write(self):
295299
if 'PyPy' in sys.version and client_context.tls:
296300
self.skipTest('PYTHON-2937 PyPy is so slow sending large '

0 commit comments

Comments
 (0)