Skip to content
Snippets Groups Projects
Commit 5058655a authored by Matt Wala's avatar Matt Wala
Browse files

Fix a misleading assertion in test_pickling_with_module_import(). Only globals...

Fix a misleading assertion in test_pickling_with_module_import(). Only globals in the module are pickled
parent 64dbbe68
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -8,14 +8,13 @@ import sys ...@@ -8,14 +8,13 @@ import sys
def test_pickling_with_module_import(): def test_pickling_with_module_import():
cg = codegen.PythonCodeGenerator() cg = codegen.PythonCodeGenerator()
cg("import pytools.py_codegen") cg("import pytools")
cg("import math as m") cg("import math as m")
import pickle import pickle
mod = pickle.loads(pickle.dumps(cg.get_picklable_module())) mod = pickle.loads(pickle.dumps(cg.get_picklable_module()))
assert mod.mod_globals["pytools"] is pytools assert mod.mod_globals["pytools"] is pytools
assert mod.mod_globals["pytools"].py_codegen is pytools.py_codegen
import math import math
assert mod.mod_globals["m"] is math assert mod.mod_globals["m"] is math
......
  • Author Maintainer

    Strange failure on a flake8 build:

    https://gitlab.tiker.net/inducer/pytools/-/jobs/46489

        self._popen = self._Popen(self)
      File "/usr/lib/python3.5/multiprocessing/context.py", line 267, in _Popen
        return Popen(process_obj)
      File "/usr/lib/python3.5/multiprocessing/popen_fork.py", line 20, in __init__
        self._launch(process_obj)
      File "/usr/lib/python3.5/multiprocessing/popen_fork.py", line 67, in _launch
        self.pid = os.fork()
    BlockingIOError: [Errno 11] Resource temporarily unavailable
    ERROR: Job failed: exit status 1
  • ?!

    Yeah. No idea.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment