def testMisc(self):
    with self.assertWarnsRegex(DeprecationWarning, 'fractions\\.gcd'):
        gcd(1, 1)
    with warnings.catch_warnings():
        warnings.filterwarnings('ignore', 'fractions\\.gcd', DeprecationWarning)
        self.assertEqual(0, gcd(0, 0))
        self.assertEqual(1, gcd(1, 0))
        self.assertEqual((- 1), gcd((- 1), 0))
        self.assertEqual(1, gcd(0, 1))
        self.assertEqual((- 1), gcd(0, (- 1)))
        self.assertEqual(1, gcd(7, 1))
        self.assertEqual((- 1), gcd(7, (- 1)))
        self.assertEqual(1, gcd((- 23), 15))
        self.assertEqual(12, gcd(120, 84))
        self.assertEqual((- 12), gcd(84, (- 120)))
        self.assertEqual(gcd(120.0, 84), 12.0)
        self.assertEqual(gcd(120, 84.0), 12.0)
        self.assertEqual(gcd(F(120), F(84)), F(12))
        self.assertEqual(gcd(F(120, 77), F(84, 55)), F(12, 385))
def testMisc(self):
    with self.assertWarnsRegex(DeprecationWarning, 'fractions\\.gcd'):
        gcd(1, 1)
    with warnings.catch_warnings():
        warnings.filterwarnings('ignore', 'fractions\\.gcd', DeprecationWarning)
        self.assertEqual(0, gcd(0, 0))
        self.assertEqual(1, gcd(1, 0))
        self.assertEqual((- 1), gcd((- 1), 0))
        self.assertEqual(1, gcd(0, 1))
        self.assertEqual((- 1), gcd(0, (- 1)))
        self.assertEqual(1, gcd(7, 1))
        self.assertEqual((- 1), gcd(7, (- 1)))
        self.assertEqual(1, gcd((- 23), 15))
        self.assertEqual(12, gcd(120, 84))
        self.assertEqual((- 12), gcd(84, (- 120)))
        self.assertEqual(gcd(120.0, 84), 12.0)
        self.assertEqual(gcd(120, 84.0), 12.0)
        self.assertEqual(gcd(F(120), F(84)), F(12))
        self.assertEqual(gcd(F(120, 77), F(84, 55)), F(12, 385))