diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-10-26 23:15:29 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-10-26 23:15:29 +0200 |
commit | 516269a43646693a3ef4423ba0c2890a816e89bc (patch) | |
tree | a6ad9dedcc3200598790e8cf1bcf2071ca8cbb4e | |
parent | af59d7a138664bf80150d672215f9b1705bc3f30 (diff) | |
download | psutil-516269a43646693a3ef4423ba0c2890a816e89bc.tar.gz |
revert last commit
-rw-r--r-- | psutil/tests/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py index 50063bc9..86930100 100644 --- a/psutil/tests/__init__.py +++ b/psutil/tests/__init__.py @@ -729,11 +729,9 @@ class TestCase(unittest.TestCase): # Print a full path representation of the single unit tests # being run. def __str__(self): - mod = self.__class__.__module__ - if mod == '__main__': - mod = __file__.split('.')[0] return "%s.%s.%s" % ( - mod, self.__class__.__name__, self._testMethodName) + self.__class__.__module__, self.__class__.__name__, + self._testMethodName) # assertRaisesRegexp renamed to assertRaisesRegex in 3.3; # add support for the new name. |