~jfb-tempo-consulting/unifield-wm/sync-env-py3

« back to all changes in this revision

Viewing changes to unittest27/test/test_setups.py

  • Committer: jf
  • Date: 2022-02-01 10:24:52 UTC
  • mfrom: (173.1.1 sync-env)
  • Revision ID: jfb@tempo-consulting.fr-20220201102452-rndr3uvmo030kqlf
[MERGE] US-9423: instance registration: do not validate an instance with no group on the sync server

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import sys
2
2
 
3
 
from io import StringIO
 
3
from cStringIO import StringIO
4
4
 
5
5
import unittest
6
6
 
501
501
 
502
502
        messages = ('setUpModule', 'tearDownModule', 'setUpClass', 'tearDownClass', 'test_something')
503
503
        for phase, msg in enumerate(messages):
504
 
            with self.assertRaisesRegex(Exception, msg):
 
504
            with self.assertRaisesRegexp(Exception, msg):
505
505
                suite.debug()
506
506
 
507
507
if __name__ == '__main__':