summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_py3kwarn.py2
-rw-r--r--Lib/user.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 7e284e5a3f..ab8e3168bd 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -126,7 +126,7 @@ class TestPy3KWarnings(unittest.TestCase):
class TestStdlibRemovals(unittest.TestCase):
- all_platforms = ('audiodev', 'imputil', 'mutex')
+ all_platforms = ('audiodev', 'imputil', 'mutex', 'user')
def check_removal(self, module_name):
"""Make sure the specified module, when imported, raises a
diff --git a/Lib/user.py b/Lib/user.py
index e550e52ad8..596f0a7462 100644
--- a/Lib/user.py
+++ b/Lib/user.py
@@ -20,6 +20,9 @@ The user's .pythonrc.py could conceivably test for sys.version if it
wishes to do different things depending on the Python version.
"""
+from warnings import warnpy3k
+warnpy3k("the user module has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
import os