summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-11-06 16:02:43 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2020-11-07 09:09:19 +0100
commitebc0eed6f9838253ae6fcaa51695136611c98298 (patch)
tree9f0de5b8b923d12b4fbebde332682ec66410ebdb /tests/__init__.py
parentc464187c8b0b228a5299acaf35e74888982429b4 (diff)
downloadpygobject-ebc0eed6f9838253ae6fcaa51695136611c98298.tar.gz
tests: Remove usage of some deprecated unittest methods
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 34976673..e6dd333a 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,6 +1,5 @@
import os
import sys
-import unittest
import signal
import subprocess
import atexit
@@ -8,9 +7,6 @@ import warnings
def init_test_environ():
- # this was renamed in Python 3, provide backwards compatible name
- unittest.TestCase.assertRegexpMatches = unittest.TestCase.assertRegex
- unittest.TestCase.assertRaisesRegexp = unittest.TestCase.assertRaisesRegex
def dbus_launch_session():
if os.name == "nt" or sys.platform == "darwin":