FYI this did the trick for me:
0diff --git a/qa/rpc-tests/segwit.py b/qa/rpc-tests/segwit.py
1index a618aec..e8a5512 100755
2--- a/qa/rpc-tests/segwit.py
3+++ b/qa/rpc-tests/segwit.py
4@@ -219,10 +219,13 @@ class SegWitTest(BitcoinTestFramework):
5 assert(self.nodes[2].getblock(block[0], False) != self.nodes[0].getblock(block[0], False))
6 assert(self.nodes[1].getblock(block[0], False) == self.nodes[2].getblock(block[0], False))
7 for i in range(len(segwit_tx_list)):
8+ from test_framework.mininode import FromHex
9+ tx = FromHex(CTransaction(), self.nodes[2].gettransaction(segwit_tx_list[i])["hex"])
10 assert(self.nodes[2].getrawtransaction(segwit_tx_list[i]) != self.nodes[0].getrawtransaction(segwit_tx_list[i]))
11 assert(self.nodes[1].getrawtransaction(segwit_tx_list[i], 0) == self.nodes[2].getrawtransaction(segwit_tx_list[i]))
12 assert(self.nodes[0].getrawtransaction(segwit_tx_list[i]) != self.nodes[2].gettransaction(segwit_tx_list[i])["hex"])
13 assert(self.nodes[1].getrawtransaction(segwit_tx_list[i]) == self.nodes[2].gettransaction(segwit_tx_list[i])["hex"])
14+ assert(self.nodes[0].getrawtransaction(segwit_tx_list[i]) == bytes_to_hex_str(tx.serialize_without_witness()))
15
16 print("Verify witness txs without witness data are invalid after the fork")
17 self.fail_mine(self.nodes[2], wit_ids[NODE_2][WIT_V0][2], False)