We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8508ff commit 1a6f268Copy full SHA for 1a6f268
qiita_client/tests/test_qiita_client.py
@@ -101,6 +101,10 @@ def setUp(self):
101
CLIENT_SECRET, server_cert=self.server_cert)
102
self.clean_up_files = []
103
104
+ # making assertRaisesRegex compatible with Python 2.7 and 3.9
105
+ if not hasattr(self, 'assertRaisesRegex'):
106
+ setattr(self, 'assertRaisesRegex', self.assertRaisesRegexp)
107
+
108
def tearDown(self):
109
for fp in self.clean_up_files:
110
if exists(fp):
0 commit comments