@@ -1300,9 +1300,12 @@ def tearDown(self):
1300
1300
1301
1301
1302
1302
class TestMariadbBinlogStreamReader (base .PyMySQLReplicationTestCase ):
1303
- def test_binlog_checkpoint_event (self ):
1303
+ def setUp (self ):
1304
+ super ().setUp ()
1304
1305
if not self .isMariaDB ():
1305
- self .skipTest ("Database is not mariadb" )
1306
+ self .skipTest ("Skipping the entire class for MariaDB" )
1307
+
1308
+ def test_binlog_checkpoint_event (self ):
1306
1309
self .stream .close ()
1307
1310
self .stream = BinLogStreamReader (
1308
1311
self .database , server_id = 1023 , blocking = False , is_mariadb = True
@@ -1333,9 +1336,12 @@ def test_binlog_checkpoint_event(self):
1333
1336
1334
1337
1335
1338
class TestMariadbBinlogStreamReader2 (base .PyMySQLReplicationTestCase ):
1336
- def test_annotate_rows_event (self ):
1339
+ def setUp (self ):
1340
+ super ().setUp ()
1337
1341
if not self .isMariaDB ():
1338
- self .skipTest ("Database is not mariadb" )
1342
+ self .skipTest ("Skipping the entire class for MariaDB" )
1343
+
1344
+ def test_annotate_rows_event (self ):
1339
1345
query = "CREATE TABLE test (id INT NOT NULL AUTO_INCREMENT, data VARCHAR (50) NOT NULL, PRIMARY KEY (id))"
1340
1346
self .execute (query )
1341
1347
# Insert first event
@@ -1364,8 +1370,6 @@ def test_annotate_rows_event(self):
1364
1370
self .assertIsInstance (event , MariadbAnnotateRowsEvent )
1365
1371
1366
1372
def test_start_encryption_event (self ):
1367
- if not self .isMariaDB ():
1368
- self .skipTest ("Database is not mariadb" )
1369
1373
query = "CREATE TABLE test (id INT NOT NULL AUTO_INCREMENT, data VARCHAR (50) NOT NULL, PRIMARY KEY (id))"
1370
1374
self .execute (query )
1371
1375
query = "INSERT INTO test (data) VALUES('Hello World')"
@@ -1404,8 +1408,6 @@ def test_start_encryption_event(self):
1404
1408
self .assertEqual (len (nonce ), 12 )
1405
1409
1406
1410
def test_gtid_list_event (self ):
1407
- if not self .isMariaDB ():
1408
- self .skipTest ("Database is not mariadb" )
1409
1411
# set max_binlog_size to create new binlog file
1410
1412
query = "SET GLOBAL max_binlog_size=4096"
1411
1413
self .execute (query )
0 commit comments