Revision 76d9365a sdk/python/tests/test_arv_normalize.py

View differences:

sdk/python/tests/test_arv_normalize.py
21 21

  
22 22
    def test_version_argument(self):
23 23
        returncode, out, err = self.run_arv_normalize(['--version'])
24
        self.assertEqual(b'', out)
25
        self.assertNotEqual(b'', err)
26
        self.assertRegexpMatches(err.decode(), "^bin/arv-normalize [0-9]+\.[0-9]+\.[0-9]+$")
24
        if sys.version_info >= (3, 0):
25
            self.assertEqual(b'', err)
26
            v = out.decode()
27
        else:
28
            self.assertEqual(b'', out)
29
            v = err.decode()
30
        self.assertRegexpMatches(v, "^bin/arv-normalize [0-9]+\.[0-9]+\.[0-9]+$")
27 31
        self.assertEqual(0, returncode)

Also available in: Unified diff