Commits

Amaury Forgeot d'Arc committed e4c2a49

Test the test with -A, fix it, then fix the implementation.

  • Participants
  • Parent commits f6f82f9
  • Branches py3k

Comments (0)

Files changed (2)

pypy/module/_warnings/__init__.py

         from pypy.module._warnings.interp_warnings import State
         state = self.space.fromcache(State)
         self.setdictvalue(self.space, "filters", state.w_filters)
-        self.setdictvalue(self.space, "once_registry", state.w_once_registry)
-        self.setdictvalue(self.space, "default_action", state.w_default_action)
+        self.setdictvalue(self.space, "_onceregistry", state.w_once_registry)
+        self.setdictvalue(self.space, "_defaultaction", state.w_default_action)
 

pypy/module/_warnings/test/test_warnings.py

 
     def test_defaults(self):
         import _warnings
-        assert _warnings.once_registry == {}
-        assert _warnings.default_action == 'default'
+        assert _warnings._onceregistry == {}
+        assert _warnings._defaultaction == 'default'
         assert "PendingDeprecationWarning" in str(_warnings.filters)
 
     def test_warn(self):