Commits

Kirill Simonov committed 30f2893

Addded `__name__` and `__file__` to global namespace for Python tests.

  • Participants
  • Parent commits 9d6c131

Comments (0)

Files changed (1)

         sys.stderr = sys.stdout
         try:
             context = {}
+            context['__name__'] = '__main__'
+            context['__file__'] = filename
             context['__pbbt__'] = self.state
             exc_info = None
             try: